|
16 | 16 |
|
17 | 17 | <ItemGroup> |
18 | 18 | <ProjectReference Include="../Grafana.OpenTelemetry.Base/Grafana.OpenTelemetry.Base.csproj" /> |
19 | | - <PackageReference Include="MinVer" Version="6.0.0"> |
20 | | - <PrivateAssets>all</PrivateAssets> |
21 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
22 | | - </PackageReference> |
| 19 | + <PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="all" /> |
23 | 20 | </ItemGroup> |
24 | 21 |
|
25 | 22 | <!-- This dependency is pulled in by `OpenTelemetry.Instrumentation.Cassandra` with a minimum |
|
30 | 27 | <PackageReference Include="CassandraCSharpDriver" Version="[3.17.0,)" /> |
31 | 28 | </ItemGroup> |
32 | 29 |
|
33 | | - <!-- Stable instrumentation packages with dependencies, only .NET --> |
34 | | - <ItemGroup Condition=" '$(TargetFramework)' != 'net462' "> |
35 | | - <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" /> <!-- needed for AspNetCore --> |
| 30 | + <ItemGroup Label="Stable instrumentation packages with dependencies"> |
| 31 | + <PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.12.0" /> |
| 32 | + <PackageReference Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.12.0" /> |
36 | 33 | </ItemGroup> |
37 | 34 |
|
38 | | - <!-- Non-stable instrumentation packages with dependencies, both .NET framework and .NET --> |
39 | | - <ItemGroup> |
40 | | - <PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.12.0" /> |
| 35 | + <ItemGroup Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' != '.NETFramework' "> |
| 36 | + <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" /> <!-- Needed for ASP.NET Core --> |
| 37 | + </ItemGroup> |
| 38 | + |
| 39 | + <ItemGroup Label="Non-stable instrumentation packages with dependencies"> |
41 | 40 | <PackageReference Include="OpenTelemetry.Instrumentation.Cassandra" Version="1.0.0-beta.2" /> |
42 | 41 | <PackageReference Include="OpenTelemetry.Instrumentation.ElasticsearchClient" Version="1.0.0-beta.5" /> |
43 | 42 | <PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.12.0-beta.1" /> |
|
48 | 47 | <PackageReference Include="OpenTelemetry.Instrumentation.Wcf" Version="1.12.0-beta.1" /> |
49 | 48 | </ItemGroup> |
50 | 49 |
|
51 | | - <!-- Non-stable instrumentation packages with dependencies, only .NET --> |
52 | | - <ItemGroup Condition=" '$(TargetFramework)' != 'net462' "> |
| 50 | + <ItemGroup Label="Non-stable instrumentation packages with dependencies, only .NET" Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' != '.NETFramework' "> |
53 | 51 | <PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.12.0" /> |
54 | 52 | </ItemGroup> |
55 | 53 |
|
56 | | - <!-- Non-stable instrumentation packages with dependencies, only .NET framework --> |
57 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'net462' "> |
| 54 | + <ItemGroup Label="Non-stable instrumentation packages with dependencies, only .NET Framework" Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' == '.NETFramework' "> |
58 | 55 | <PackageReference Include="OpenTelemetry.Instrumentation.AspNet" Version="1.12.0-beta.1" /> |
59 | 56 | <PackageReference Include="OpenTelemetry.Instrumentation.Owin" Version="1.12.0-beta.1" /> |
60 | 57 | </ItemGroup> |
61 | 58 |
|
62 | | - <ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))"> |
63 | | - <PackageReference Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.12.0" /> |
64 | | - </ItemGroup> |
65 | | - |
66 | 59 | <ItemGroup> |
67 | 60 | <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> |
68 | 61 | <_Parameter1>Grafana.OpenTelemetry.Tests</_Parameter1> |
|
0 commit comments