How to publish symbol packages (snupkg) on NuGet?
I'm trying to publish my symbol packages (.snupkg) on NuGet but only the regular packages (.nupkg) are published.
Here's my configuration:
version: '#{build}'
image: Ubuntu
configuration: Release
nuget:
disable_publish_on_pr: true
before_build:
- ps: dotnet restore
build:
project: DbContextValidation.sln
publish_nuget: true
publish_nuget_symbols: true
use_snupkg_format: true
parallel: true
verbosity: minimal
deploy:
- provider: NuGet
api_key:
secure: […]
The snupkg files are correctly produced: https://ci.appveyor.com/project/0xced/dbcontextvalidation/builds/29...
Successfully created package '/tmp/7r14awoe18/DbContextValidation.EF6.1.0.0-preview.0.255.nupkg'
Successfully created package '/tmp/7r14awoe18/DbContextValidation.EF6.1.0.0-preview.0.255.snupkg'
[…]
Successfully created package '/tmp/pqetj7sp0q/DbContextValidation.EFCore.1.0.0-preview.0.255.nupkg'.
Successfully created package '/tmp/pqetj7sp0q/DbContextValidation.EFCore.1.0.0-preview.0.255.snupkg'.
But only nupkg files end up in the artifacts: https://ci.appveyor.com/project/0xced/dbcontextvalidation/builds/29...
What am I missing?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 28 Nov, 2019 12:46 AM
Thanks for reporting that issue! It looks like it's not yet implemented for Linux/macOS builds. I've created a new issue to fix that and deploy during the next image update: https://github.com/appveyor/ci/issues/3224
For now you should use a workaround, like calling
dotnet pack
explicitly with known output directory and then publishing files from output directory to artifacts. Let me know if you need an example.2 Posted by 0xced on 28 Nov, 2019 01:03 AM
Thanks for your quick reply! I added this in after_build:
It's working, I have now 4 artifacts instead of 2:But the snupkg files are not published to NuGet: https://ci.appveyor.com/project/0xced/dbcontextvalidation#L117
Support Staff 3 Posted by Feodor Fitsner on 28 Nov, 2019 01:17 AM
Add
-Type
toPush-AppVeyorArtifact
command:4 Posted by 0xced on 29 Nov, 2019 08:58 PM
It worked perfectly, thanks!
5 Posted by 0xced on 14 May, 2020 12:39 PM
I see that issue #3224 is now closed but I'm still having trouble to publish the snupkg on NuGet on an Ubuntu image.
Here are the relevant parts of my configuration:
Publishing of the
nupgk
file works but publishing of thesnupkg
file fails with a Method Not Allowed error:Support Staff 6 Posted by Feodor Fitsner on 14 May, 2020 05:09 PM
Thanks for reporting that! Sounds like a bug. Will be fixed this week, please subscribe to the issue: https://github.com/appveyor/ci/issues/3431
Feodor Fitsner closed this discussion on 14 Jul, 2020 09:02 PM.