[.NET7.0] Add net7.0 target to w3c trace contexts (#3390)
* Add net7.0 target for w3ctracecontext tests * net70 dependency * fix typo
This commit is contained in:
parent
5d5f1f2964
commit
6c9dc8e2b3
|
|
@ -29,6 +29,9 @@ using TestApp.AspNetCore._5._0;
|
|||
#if NET6_0
|
||||
using TestApp.AspNetCore._6._0;
|
||||
#endif
|
||||
#if NET7_0
|
||||
using TestApp.AspNetCore._7._0;
|
||||
#endif
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace OpenTelemetry.Instrumentation.W3cTraceContext.Tests
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Description>Unit test project for OpenTelemetry ASP.NET Core instrumentation for W3C Trace Context Trace</Description>
|
||||
<!-- OmniSharp/VS Code requires TargetFrameworks to be in descending order for IntelliSense and analysis. -->
|
||||
<TargetFrameworks Condition="$(TARGET_FRAMEWORK) == ''">net6.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$(TARGET_FRAMEWORK) == ''">net7.0;net6.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$(TARGET_FRAMEWORK) != ''">$(TARGET_FRAMEWORK)</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
<ProjectReference Include="$(RepoRoot)\test\TestApp.AspNetCore.6.0\TestApp.AspNetCore.6.0.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
|
||||
<ProjectReference Include="$(RepoRoot)\test\TestApp.AspNetCore.7.0\TestApp.AspNetCore.7.0.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="$(RepoRoot)\test\OpenTelemetry.Tests\Shared\SkipUnlessEnvVarFoundTheoryAttribute.cs" Link="Implementation\SkipUnlessEnvVarFoundTheoryAttribute.cs" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue