Error creating NuGet package for Portable Class Library

岁酱吖の 提交于 2019-12-04 07:19:26

It looks like there is a bug in NuGet 2.8 causing it to fail to read the metadata from a PCL assembly.

I was going to suggest you try an older version of NuGet but unfortunately I think you need 2.8.1 since you are using the Windows Phone Application target (wpa) which is only supported in 2.8.1 or above.

A workaround would be to use nuget pack YourNuSpecFile.nuspec instead of using the project file. However you will need to put more information in the .nuspec to get this to work.

This issue is patched in 3.0.0

until 3.0.0 is released, I have created this repository that contains a patched executable that I have been using for the past few months. The repository also contains a sample project to better visualize the issue and how it can occur under simple, yet unexpected circumstances.

A direct link to the executable is here: https://bitbucket.org/patsissons/nugetpclissue/src/HEAD/.nuget-patched/NuGet.exe?at=master

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!