-
Notifications
You must be signed in to change notification settings - Fork 293
/
OpenTelemetry.Exporter.OneCollector.csproj
41 lines (35 loc) · 2.28 KB
/
OpenTelemetry.Exporter.OneCollector.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>An OpenTelemetry .NET exporter that sends telemetry to Microsoft OneCollector</Description>
<Authors>OpenTelemetry Authors</Authors>
<TargetFrameworks>net8.0;net6.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<MinVerTagPrefix>Exporter.OneCollector-</MinVerTagPrefix>
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
<!-- Note: SYSLIB1100;SYSLIB1101 - Configuration.Binder: Can't create
instance and unsupported type are being emitted by config source generator
processing OneCollectorExporterTransportOptions. It would be preferable to suppress
this at the call site but there is a bug. This could possibly be cleaned up
in the future (hopefully .NET 9) see https://github.com/dotnet/runtime/issues/92509 -->
<NoWarn>$(NoWarn);SYSLIB1100;SYSLIB1101</NoWarn>
<PackageValidationBaselineVersion>1.9.2</PackageValidationBaselineVersion>
</PropertyGroup>
<PropertyGroup>
<OTelSdkVersion>$(OpenTelemetryCoreLatestVersion)</OTelSdkVersion>
<DefineConstants Condition="$(OTelSdkVersion.Contains('alpha')) OR $(OTelSdkVersion.Contains('beta')) OR $(OTelSdkVersion.Contains('rc'))">$(DefineConstants);EXPOSE_EXPERIMENTAL_FEATURES</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OpenTelemetry" Version="$(OTelSdkVersion)" />
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonPkgVer)" Condition="'$(TargetFramework)' != 'net8.0' AND '$(TargetFramework)' != 'net6.0'" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="$(MicrosoftExtensionsConfigurationBinderPkgVer)" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Net.Http" Condition="'$(TargetFramework)' == 'net462'" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(RepoRoot)\src\Shared\ExceptionExtensions.cs" Link="Includes\ExceptionExtensions.cs" />
<Compile Include="$(RepoRoot)\src\Shared\Guard.cs" Link="Includes\Guard.cs" />
<Compile Include="$(RepoRoot)\src\Shared\IsExternalInit.cs" Link="Includes\IsExternalInit.cs" />
</ItemGroup>
</Project>