I'm getting mad trying to solve this one. My environment:
- VS2015
- Nuget extension 3.3.0.167
- Octopack package 3.0.45.
When I run the following command below, the package is correctly generated:
v4.0.30319\msbuild PackagingTest.sln /t:Rebuild
/p:Configuration=Release /p:RunOctopack=true
/p:OctoPackPackageVersion=1.1.1/p:OctoPackPublishPAckageToFileShare=C:\Packages
But when I try to Install the package in a second project I get this exception:
Could not install package 'PackagedLibrary 1.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
- Both are targeting the same framework (4.5).
- If you extract the library from the package and reference it, there's nothing weird going on there.
- If you add the package from VS2013, it works perfectly.
I've notice Octopack version (dowloaded from the v3 endpoint https://api.nuget.org/v3/index.json) has Nuget.exe v.2.8, instead of the 3.xxx that it should. So I've tried to manually replace the nuget.exe file to generate the package, with no changes.
Any clues of what am I missing?
Thanks in advance