from @xinqui
1. Unzip the attached NuGet package file
2. Create a Fx4.0 project
3. Add NuGet package from step 1
Expected:
ClassLibrary3.dll be referenced, along with ClassLibrary2.dll
Actual:
ClassLibrary3.dll not referenced, only ClassLibrary2.dll is referenced.
The nuspec part is like following:
<references>
<group targetFramework="net45">
<reference file="ClassLibrary1.dll" />
</group>
<group targetFramework="net40">
<reference file="ClassLibrary2.dll" />
</group> <group>
<reference file="ClassLibrary3.dll" />
</group>
</references>
</metadata>
<files>
<file src="content\ajaxlogin.js" target="content\ajaxlogin.js" />
<file src="content\todo.bindings.js" target="content\todo.bindings.js" />
<file src="content\todo.datacontext.js" target="content\todo.datacontext.js" />
<file src="content\todo.model.js" target="content\todo.model.js" />
<file src="content\todo.viewmodel.js" target="content\todo.viewmodel.js" />
<file src="content\ClassLibrary1.dll" target="lib\net45\ClassLibrary1.dll" />
<file src="content\ClassLibrary2.dll" target="lib\net40\ClassLibrary2.dll" />
<file src="content\ClassLibrary3.dll" target="lib\net40\ClassLibrary3.dll" />
</files>
1. Unzip the attached NuGet package file
2. Create a Fx4.0 project
3. Add NuGet package from step 1
Expected:
ClassLibrary3.dll be referenced, along with ClassLibrary2.dll
Actual:
ClassLibrary3.dll not referenced, only ClassLibrary2.dll is referenced.
The nuspec part is like following:
<references>
<group targetFramework="net45">
<reference file="ClassLibrary1.dll" />
</group>
<group targetFramework="net40">
<reference file="ClassLibrary2.dll" />
</group> <group>
<reference file="ClassLibrary3.dll" />
</group>
</references>
</metadata>
<files>
<file src="content\ajaxlogin.js" target="content\ajaxlogin.js" />
<file src="content\todo.bindings.js" target="content\todo.bindings.js" />
<file src="content\todo.datacontext.js" target="content\todo.datacontext.js" />
<file src="content\todo.model.js" target="content\todo.model.js" />
<file src="content\todo.viewmodel.js" target="content\todo.viewmodel.js" />
<file src="content\ClassLibrary1.dll" target="lib\net45\ClassLibrary1.dll" />
<file src="content\ClassLibrary2.dll" target="lib\net40\ClassLibrary2.dll" />
<file src="content\ClassLibrary3.dll" target="lib\net40\ClassLibrary3.dll" />
</files>