From ccc0dd8ac3db57e28779bfbfbaa4ac0b8fd7f502 Mon Sep 17 00:00:00 2001 From: Jeff Tyson Date: Thu, 4 Jun 2020 23:34:48 -0700 Subject: [PATCH] Change NuGet package to use `None` ItemGroup to copy files to output directory (#703) Without this change, files from this nuget package will be included automatically when the consuming project is packing. Example error when packing a project: > C:\Program Files\dotnet\sdk\3.1.200\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(198,5): warning NU5100: The assembly 'content\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll' is not inside the 'lib' folder and hence it won't be added as a reference when the package is installed into a project. Move it into the 'lib' folder if it needs to be referenced. Additionally, add the contents to an ItemGroup so they can be seperated later if needed. --- .../Build/Desktop/MSTest.TestAdapter.props | 22 +++++++++++++------ .../Build/NetCore/MSTest.TestAdapter.props | 22 +++++++++++++------ .../Build/Universal/MSTest.TestAdapter.props | 22 +++++++++++++------ 3 files changed, 45 insertions(+), 21 deletions(-) diff --git a/src/Adapter/Build/Desktop/MSTest.TestAdapter.props b/src/Adapter/Build/Desktop/MSTest.TestAdapter.props index 4fd179fc32..54b8bc439e 100644 --- a/src/Adapter/Build/Desktop/MSTest.TestAdapter.props +++ b/src/Adapter/Build/Desktop/MSTest.TestAdapter.props @@ -1,20 +1,28 @@ - + Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll PreserveNewest False - - + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll PreserveNewest False - - + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll PreserveNewest False - + - \ No newline at end of file + + + + + + diff --git a/src/Adapter/Build/NetCore/MSTest.TestAdapter.props b/src/Adapter/Build/NetCore/MSTest.TestAdapter.props index 14ecf32da7..ba5f112fc7 100644 --- a/src/Adapter/Build/NetCore/MSTest.TestAdapter.props +++ b/src/Adapter/Build/NetCore/MSTest.TestAdapter.props @@ -1,20 +1,28 @@ - + Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll PreserveNewest False - - + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll PreserveNewest False - - + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll PreserveNewest False - + - \ No newline at end of file + + + + + + diff --git a/src/Adapter/Build/Universal/MSTest.TestAdapter.props b/src/Adapter/Build/Universal/MSTest.TestAdapter.props index 14ecf32da7..ba5f112fc7 100644 --- a/src/Adapter/Build/Universal/MSTest.TestAdapter.props +++ b/src/Adapter/Build/Universal/MSTest.TestAdapter.props @@ -1,20 +1,28 @@ - + Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll PreserveNewest False - - + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll PreserveNewest False - - + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll PreserveNewest False - + - \ No newline at end of file + + + + + +