Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions msbuild/props/SixLabors.Tests.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,33 @@
<CodeAnalysisRuleSet Condition="'$(CodeAnalysisRuleSet)' == ''">$(MSBuildThisFileDirectory)..\..\sixlabors.tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<!--
We run tests with VSTest because coverlet code coverage works only with VSTest.
xunit.v3 4.x enables Microsoft.Testing.Platform for test projects by default.
When Microsoft.Testing.Platform is enabled, 'dotnet test' fails on the .NET 10 SDK.
This property disables Microsoft.Testing.Platform, so 'dotnet test' runs with VSTest
on all SDK versions.
-->
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<IsTestingPlatformApplication Condition="'$(IsTestingPlatformApplication)' == ''">false</IsTestingPlatformApplication>
</PropertyGroup>

<!-- Package references and additional files which are consumed by test projects -->
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="xunit.v3" Version="3.2.2" IsImplicitlyDefined="true" />
<PackageReference Include="xunit.v3" Version="4.0.0" IsImplicitlyDefined="true" />

<PackageReference Include="coverlet.collector"
Version="6.0.0"
Version="10.0.1"
PrivateAssets="All"
IsImplicitlyDefined="true"
Condition="'$(IsCodeCoverage)'=='true'"/>

<PackageReference Include="Microsoft.NET.Test.Sdk"
Version="17.12.0"
Version="18.9.0"
IsImplicitlyDefined="true"/>

<PackageReference Include="xunit.runner.visualstudio"
Version="3.1.5"
Version="4.0.0"
IsImplicitlyDefined="true" />

<Using Include="Xunit" Condition="'$(ImplicitUsings)'=='enable' OR '$(ImplicitUsings)'=='true'"/>
Expand Down
Loading