✅ dotnet pack command fails
Hello,
I'm trying to package a library, but
dotnet pack
fails to create the package.
The docs says I should build the project it beforehand, or not use the --no-build
flag, but I didn't specify the flag.
https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5026
Below is the .csproj
file
NuGet Error NU5026
NU5026 Error code
4 Replies
I wonder whether GeneratePackageOnBuild might be messing it up?
Yes... That was the problem
Thank you so much
Why is that option even available if it messes with packaging...
Lol, what a guess
My guess is that it causes the package to happen on build just fine... But breaks a explicit package? See if there's an open issue for it
There was apparently an issue, and this is by design: https://github.com/NuGet/Home/issues/11691#issuecomment-1085102122