c# - NuGet lib folder content not included in package -
situation:
- class library called
ims.general.labelwriter.csproj
- project labelwriter references third party assemblies (*.dll)
- third party assemblies inside lib folder in project root:
- the .dlls have build action set none in properties panel
- nuspec file looks this:
<?xml version="1.0"?> <package > <metadata> <id>$id$</id> <version>$version$</version> <title>$title$</title> <authors>$author$</authors> <owners>$author$</owners> <requirelicenseacceptance>false</requirelicenseacceptance> <description>$description$</description> <copyright>copyright 2015</copyright> </metadata> </package>
- we execute command:
nuget pack ims.general.labelwriter.csproj -build -symbols -includereferencedprojects -prop configuration=release
- nuget docs specifies
references
tag in nuspec file:
v1.5 names of assemblies under lib added project references. if unspecified, references in lib added project references. when specifying reference, specify name , not path inside package.
problem:
the third party assemblies not included in nuget package!
question:
is nuget bug? or doing wrong? because nuget describes convention: put dlls inside lib folder.
note: providing answer have include <files>
tag inside nuspec file not answer question.
Comments
Post a Comment