Skip to content

Commit

Permalink
Fix main (#4373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Dec 18, 2024
1 parent f81364c commit 35a6176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<ProjectReference Include="$(RepoRoot)src\Platform\Microsoft.Testing.Extensions.TrxReport\Microsoft.Testing.Extensions.TrxReport.csproj" />
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" GeneratePathProperty="True" />
<PackageReference Include="MSTest.Analyzers" />

<PackageReference Include="MSTest.TestFramework" />
<PackageReference Update="MSTest.TestFramework" Condition=" '$(UseMSTestFromSource)' == 'true' " ExcludeAssets="runtime;compile" />
<PackageReference Include="MSTest.TestAdapter" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<UseVSTestRunner>false</UseVSTestRunner>
<EnableMSTestRunner>true</EnableMSTestRunner>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>

<!-- Analyzers project need to explicitly exclude compile and runtime assets from MSTest.TestFramework NuGet package -->
<!-- This is to ensure that the assembly built from source is what is being used in tests -->
<!-- This will exclude compile and runtime assets from NuGet so that they flow via ProjectReference -->
<UseMSTestFromSource>true</UseMSTestFromSource>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 35a6176

Please sign in to comment.