Nuget package content files only
I would like to create a nuget package (from some C # project), but I don't want to embed the generated dll, just some static files.
I added the tag to the end of my nuspec file, but the nuget pack command continues to build project.dll into the package. The thing is, I don't want this DLL to be published.
Is there a way to do this?
Thank,
Regis
+3
source to share
1 answer
Yes. You can create a .nuspec file that simply links to content files.
You must use nuget pack MyPackage.nuspec
Do not package the .csproj file as NuGet includes an inline assembly.
See http://docs.nuget.org/create/nuspec for details .
+4
source to share