Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NuGet pack on csproj ignores empty files element in nuspec file #3257
Since NuGet client 3.4.4 the behavior of the pack command has changed and is not in line with the documentation anymore.
Before 3.4.4 it was possible to only include the output assembly and ignore content files in the nupkg by adding an empty files element in the nuspec file. From the docs (https://docs.nuget.org/Create/Creating-and-Publishing-a-Package#creating-a-package):