Skip to content

Commit

Permalink
Workaround harmless MSBuild warning in VS (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Feb 16, 2024
1 parent 5660127 commit 80b813d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Adapter/Build/Common/MSTest.TestAdapter.targets
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,20 @@
(i.e. `<None Remove="@(TestAdapterContent)" />`)
-->
<None Include="@(TestAdapterContent)" />
<Reference Include="Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter" HintPath="$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" Condition=" '$(EnableMSTestRunner)' == 'true' " />
</ItemGroup>

<Choose>
<!-- Avoid false warning about missing reference (msbuild bug) -->
<!-- https://github.com/dotnet/msbuild/issues/9698#issuecomment-1945763467 -->
<When Condition=" '$(EnableMSTestRunner)' == 'true' ">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter">
<HintPath>$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll</HintPath>
</Reference>
</ItemGroup>
</When>
</Choose>

<Target Name="GetMSTestV2CultureHierarchy">
<!--
Only traversing 5 levels in the culture hierarchy. This is the maximum length for all cultures and should be sufficient
Expand Down

0 comments on commit 80b813d

Please sign in to comment.