-
Notifications
You must be signed in to change notification settings - Fork 252
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
NU5017 reported for symbol packages without clarifying this #10372
Comments
In fact, it is exactly my case - I had missed that the base package had been created. And I didn't consider that possiblity because I had not explicitly requested a symbols package. With a pack operation creating two packages it would indeed be useful if the error message included the target package name. |
I'm running into this problem with While my issue would be fixed by dotnet/msbuild#2754, the symptom is the same as this one - the exact same misleading error that cannot be suppressed. |
Yes, I recently started building |
Came across this because I had the same problem. Error message could be better based on my experience here:
Seems legacy package creation handles the fact that the pdb information is packed into the nupkg, but snupkg package exceptions under same conditions. |
I had a pretty complex setup that broke on CI/CD because of this as well. I couldn't figure out why wouldn't the package build; when in fact, it does (and it did), but couldn't create a symbol package after the fact - exactly because there were no symbols to embed the sources in, and the snupkg package would've been empty. I'm not sure what the expected behavior be, the message is definitely misleading, but I think if the snupkg can't build because it would be empty, maybe it's intentional?
should not even try to create a symbols package, right? |
When this property is set (perhaps in a
Directory.Build.props
file somewhere):NuGet packages that only bundle content, build imports, etc. fail to pack in a somewhat bizarre way:
Note it says it packed, then reports errors and breaks the build. No clue as to why.
Eventually I figure out that it's the symbols package that failed to build. It doesn't apply in my case, so I can remove the property that says to build a snupkg file. But it would sure save a lot of investigation time if the error message indicated that it was the symbols package that failed and that the property can be cleared to solve the problem.
Similar to what @Zastai posted in #8583 (comment)_
The text was updated successfully, but these errors were encountered: