Skip to content

Commit 7a58edc

Browse files
committed
Fix setup of MSBuild Reference item entry (#2220)
`Include` should be the name of the dll without the .dll suffix and `HintPath` should be the full path.
1 parent b3be008 commit 7a58edc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Adapter/Build/Common/MSTest.TestAdapter.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
(i.e. `<None Remove="@(TestAdapterContent)" />`)
3232
-->
3333
<None Include="@(TestAdapterContent)" />
34-
<Reference Include="$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" Condition=" '$(EnableMSTestRunner)' == 'true' " />
34+
<Reference Include="Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter" HintPath="$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" Condition=" '$(EnableMSTestRunner)' == 'true' " />
3535
</ItemGroup>
3636

3737
<Target Name="GetMSTestV2CultureHierarchy">

Diff for: src/Adapter/Build/NetWithWinUI/MSTest.TestAdapter.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(i.e. `<None Remove="@(TestAdapterContent)" />`)
3939
-->
4040
<None Include="@(TestAdapterContent)" />
41-
<Reference Include="$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" Condition=" '$(EnableMSTestRunner)' == 'true' " />
41+
<Reference Include="Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter" HintPath="$(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll" Condition=" '$(EnableMSTestRunner)' == 'true' " />
4242
</ItemGroup>
4343

4444
<Target Name="GetMSTestV2CultureHierarchy">

0 commit comments

Comments
 (0)