Skip to content

Commit e266e72

Browse files
committed
Replace ItemGroup item with Copy task to see if that fixes xunit/xunit#1651
1 parent f970798 commit e266e72

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/xunit.runner.visualstudio/build/xunit.runner.visualstudio.desktop.props

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
77
<Visible>False</Visible>
88
</None>
9-
<None Include="$(MSBuildThisFileDirectory)xunit.abstractions.dll">
10-
<Link>xunit.abstractions.dll</Link>
11-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
12-
<Visible>False</Visible>
13-
</None>
149
<None Include="$(MSBuildThisFileDirectory)xunit.runner.reporters.net452.dll">
1510
<Link>xunit.runner.reporters.net452.dll</Link>
1611
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Target Name="XunitVSTestCopyAbstractions" AfterTargets="Build">
4+
<Copy SourceFiles="$(MSBuildThisFileDirectory)xunit.abstractions.dll" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" />
5+
</Target>
6+
</Project>

src/xunit.runner.visualstudio/xunit.runner.visualstudio.nuspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131

3232
<file target="build\net462\" src="bin\$Configuration$\net462\xunit.*.dll" />
3333
<file target="build\net462\xunit.runner.visualstudio.props" src="build\xunit.runner.visualstudio.desktop.props" />
34+
<file target="build\net462\xunit.runner.visualstudio.targets" src="build\xunit.runner.visualstudio.targets" />
3435

3536
<file target="build\net6.0\" src="bin\$Configuration$\net6.0\xunit.*.dll" />
3637
<file target="build\net6.0\xunit.runner.visualstudio.props" src="build\xunit.runner.visualstudio.dotnetcore.props" />
38+
<file target="build\net6.0\xunit.runner.visualstudio.targets" src="build\xunit.runner.visualstudio.targets" />
3739

3840
<file target="lib\net462\" src="build\_._" />
3941

0 commit comments

Comments
 (0)