File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 31
31
(i.e. `<None Remove="@(TestAdapterContent)" />`)
32
32
-->
33
33
<None Include =" @(TestAdapterContent)" />
34
- <Reference Include =" Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter" HintPath =" $(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" Condition =" '$(EnableMSTestRunner)' == 'true' " />
35
34
</ItemGroup >
36
35
36
+ <Choose >
37
+ <!-- Avoid false warning about missing reference (msbuild bug) -->
38
+ <!-- https://github.com/dotnet/msbuild/issues/9698#issuecomment-1945763467 -->
39
+ <When Condition =" '$(EnableMSTestRunner)' == 'true' " >
40
+ <ItemGroup >
41
+ <Reference Include =" Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter" >
42
+ <HintPath >$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll</HintPath >
43
+ </Reference >
44
+ </ItemGroup >
45
+ </When >
46
+ </Choose >
47
+
37
48
<Target Name =" GetMSTestV2CultureHierarchy" >
38
49
<!--
39
50
Only traversing 5 levels in the culture hierarchy. This is the maximum length for all cultures and should be sufficient
You can’t perform that action at this time.
0 commit comments