Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Content only packages #3668
Nuget complains on installing content only packages that are created without any assembly to a reference. The package is created from a convention-based working directory with only a build folder. The same problem seems to occur with a content folder only (reference).
The installation (NuGet Package Manager for VS 2015 v220.127.116.111) fails with an error like:
The solution is to add an empty lib folder to the root package directory. This is not obvious (no error or warning while packing) and a little cumbersome and therefore I would treat that behavior as a bug.
Content and Build are both counted as assets. If you are seeing the error above it means that there are zero files in the package that apply to your target framework.
Please share what version of NuGet you are using, the project Target Framework, and the package if you are seeing different behavior.