-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change NuGet package to use None
ItemGroup to copy files to output directory
#703
Change NuGet package to use None
ItemGroup to copy files to output directory
#703
Conversation
…directory 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.
Thanks for the PR, added it to 16.7.0. If you shared a bit more about why this is an issue, and how to replicate it, that would be great 🙂 |
Why it's an issue: any projects package referencing the Here's a sample
Output:
Expected output:
|
Thanks, helps a lot :) |
Without this change, files from this nuget package will be included
automatically when the consuming project is packing.
Example error when packing a project:
Additionally, add the contents to an ItemGroup so they can be seperated later if needed.