Building a nuget package that references a portable class library -
i trying construct nuget package installs portable class library has dependencies on collection of portable class libraries. can create package , install without problem when run app new package installed, .net 4.5. class library test project, following exception:
threw exception: system.io.filenotfoundexception: not load file or assembly 'microsoft.data.services.client.portable, version=5.6.1.0, culture=neutral, ...
my nuspec file, contains following dependencies section.
<dependencies> <group targetframework="portable-net45+wp80+win"> <dependency id="microsoft.bcl" version="1.1.6" /> <dependency id="newtonsoft.json" version="6.0.2" /> <dependency id="microsoft.data.services.client" version="5.6.1" /> <dependency id="microsoft.aspnet.webapi.client" version="5.1.1" /> </group> </dependencies>
i have created numerous nuget packages in past , have never seen issue. guessing has referencing pcl versions of each library within pcl dll creating clueless how nuget work properly.
what missing?
this looks issue microsoft.data.services.client nuget package. using different assembly names portable version .net framework , silverlight versions. portable assembly compiled against microsoft.data.services.client.portable.dll, when nuget package installed .net project, microsoft.data.services.client.dll referenced instead.
generally, package should use same assembly name on platforms (the apis need compatible between platforms though).
Comments
Post a Comment