[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:
Paulo Janotti 2020-04-30 21:46:40 -07:00 committed by GitHub
parent dacae6d50f
commit efef61278b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>