[Tiny] Fix 'dotnet test OpenTelemetry.sln' out of Windows (#654)
* Fix 'dotnet test OpenTelemetry.sln' out of Windows The test requires VS to run but even with mono it fails at run time since it references types that only exist on Windows .NET Framework. The workaround is to not include the test runner outside of Windows, this shows a warning when the command is run outside of Windows. * Remove extra white space Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
This commit is contained in:
parent
dacae6d50f
commit
efef61278b
|
|
@ -18,7 +18,7 @@
|
|||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
|
||||
<PackageReference Include="Moq" Version="4.11.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
|
||||
<PackageReference Condition="$([MSBuild]::IsOsPlatform('Windows'))" Include="xunit.runner.visualstudio" Version="2.4.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
|||
Loading…
Reference in New Issue