Open dsplaisted opened 6 years ago
//cc @rohit21agrawal
won't be on the top of my list to fix, but will gladly accept a PR. the fix will revolve around wrapping the line AddFiles in PackageBuilder in a try-catch block and aggregating the failures, and throwing an exception in the end. (https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/PackageBuilder.cs#L546)
EXPECTED: Build errors listing all of the files listed in the .nuspec that can't be found ACTUAL: Error for only the first missing file:
This can become quite cumbersome when you have a .nuspec with a large number of files that is packed at the end of a long build. You'll get an error for just the first missing file, and when you fix it you'll have to do the whole build again, and repeat this for each missing file in the .nuspec.