NuGet version 3.0+ is needed
My project is generating packages from Portable Class Libraries. There is a known bug in NuGet versions previous to 3.0 in which it's unable to extract the metadata (version, dependencies, author...) from PCLs. This is what I'm getting.
52 Attempting to build package from 'Glass.csproj'.
53 Packing files from 'C:\projects\omnixaml\Source\Glass\bin\Debug'.
54 WARNING: Unable to extract metadata from 'Glass.dll'.
55 Using 'Glass.nuspec' for metadata.
56 Successfully created package 'C:\Users\appveyor\AppData\Local\Temp\h33lrj6iwm\Glass.1.0.nupkg'.
57
58 Attempting to build symbols package for 'Glass.csproj'.
59 Packing files from 'C:\projects\omnixaml\Source\Glass\bin\Debug'.
This is my URL in AppVeyor for the project:
https://ci.appveyor.com/project/SuperJMN/omnixaml
You can locate NuGet.exe 3.0+ here: http://dist.nuget.org/win-x86-commandline/v3.1.0-beta/nuget.exe (link is from http://blog.nuget.org/20150729/Introducing-nuget-uwp.html)
Please, update to this version or provide some workaround.
Thank you a lot!
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 12 Aug, 2015 05:51 PM
We'll deploy nuget 3.0 to VS 2015 images today.
For now you can use this simple script to replace it with 3.0 during the build:
https://github.com/FeodorFitsner/AppVeyorUWPBuildTest/blob/master/a...
2 Posted by superjmn on 12 Aug, 2015 10:16 PM
Big thanks! You rock!
3 Posted by superjmn on 13 Aug, 2015 11:43 AM
Oh my... it seems that this beta 3.1 has recovered the same the bug! I'm tried to file an issue in the official NuGet 3 repo in GitHub, but it's close for issues right now. Anyways, I've already warned the people. I hope it gets fixed soon.
Meanwhile, I've discovered a patched version without the bug, that can be found here: https://bitbucket.org/patsissons/nugetpclissue/raw/38fbf6c953292449e6765d3e0ce02ebfbef4832b/.nuget-patched/NuGet.exe
Original post in Stack Overflow is here: http://stackoverflow.com/questions/23676953/error-creating-nuget-package-for-portable-class-library
Support Staff 4 Posted by Feodor Fitsner on 14 Aug, 2015 03:55 PM
You can always override it with something like:
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.