Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

creating nuget: can not package referenced dlls

$
0
0

I'm trying to create a nuget using the "Nuget Package Explorer". The project references 2 dlls which target .net4.0 and the main dll targets .net4.5.

As specified, I put the 2 referenced dlls in a folder inside the "lib" folder called "net40", the main dll in a folder called "net45", then i pushed the nuget which is located here

But when I try to install it in another project, it doesn't take any of the dlls!

Am I doing something wrong?

Thank you.

UPDATE:

The nuget package contains:

lib (folder)    net45 (folder)        MainAssembly.dll -> targets .net_4.5        Microsoft.VisualStudio.TextTemplating.10.0 -> targets .net_4        Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 -> targets .net_4

notes:

  • MainAssembly needs the two other assemblies
  • I just want to target the .net version 4.5

the problem :

creating a nuget package using the structure above doesn't work, when installing the nuget in a new project the MainAssembly is not added the list of references, only the two other assemblies are added.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>