Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<PackageVersion Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<PackageVersion Include="NJsonSchema" Version="$(NJsonSchemaVersion)" />
<PackageVersion Include="NJsonSchema.NewtonsoftJson" Version="$(NJsonSchemaVersion)" />
<PackageVersion Include="OpenTelemetry.OutOfProcess.Forwarder.Configuration" Version="0.1.0-beta.1" />
<PackageVersion Include="System.CommandLine" Version="$(SystemCommandLineVersion)" />
<PackageVersion Include="System.Private.Uri" Version="$(SystemPrivateUriVersion)" />
<PackageVersion Include="System.Text.Json" Version="$(SystemTextJsonVersion)" />
Expand Down
1 change: 1 addition & 0 deletions generate-dev-sln.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $ErrorActionPreference = 'Stop'

$resolvedPath = Resolve-Path $DiagRepoRoot
$env:DIAGNOSTICS_REPO_ROOT=$resolvedPath
$env:ENABLE_OTEL="true"

#Generates a solution that spans both the diagnostics and the dotnet-monitor repo.
#This can be used to build both projects in VS.
Expand Down
8 changes: 8 additions & 0 deletions src/Tools/dotnet-monitor/dotnet-monitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
<PackageReference Include="Microsoft.AspNetCore.OpenApi" GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup Condition="'$(ENABLE_OTEL)' != ''">
<PackageReference Include="OpenTelemetry.OutOfProcess.Forwarder.Configuration" />
Comment thread
rajkumar-rangaraj marked this conversation as resolved.
Outdated
</ItemGroup>

<ItemGroup Condition="'$(DIAGNOSTICS_REPO_ROOT)' == ''">
Comment thread
rajkumar-rangaraj marked this conversation as resolved.
<PackageReference Include="Microsoft.Diagnostics.Monitoring" />
</ItemGroup>
Expand All @@ -36,6 +40,10 @@
<ProjectReference Include="$(DIAGNOSTICS_REPO_ROOT)\src\Microsoft.Diagnostics.Monitoring\Microsoft.Diagnostics.Monitoring.csproj" />
</ItemGroup>

<PropertyGroup Condition="'$(ENABLE_OTEL)' != ''">
<DefineConstants>$(DefineConstants);BUILDING_OTEL</DefineConstants>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Microsoft.Diagnostics.Monitoring.Options\Microsoft.Diagnostics.Monitoring.Options.csproj" />
<ProjectReference Include="..\..\Microsoft.Diagnostics.Monitoring.WebApi\Microsoft.Diagnostics.Monitoring.WebApi.csproj" />
Expand Down