visual studio - Create nuget package from dlls -
i want create nuget package adds multiple .dll references project.
i have folder 10 .dlls files in it.
when install via nuget, want these files add project references.
thanks help
i want create nuget package adds multiple .dll references project.
i give 2 solutions achieve this:
first, use nuget package explorer:
- download nuget package explorer.
- open nuget package explorer, select create new package.
- add lib folder on content tab, , add dlls file
- save package , install project, check if add references.
second, lex li mention, use .nuspec pack assemblies:
- download nuget.exe.
- create new project.
- open cmd , switch path nuget.exe
- use command line:
nuget spec "pathofproject\testdemo.csproj"
open testdemo.csproj.nuspec file , modofy , add assemblies file, below .nuspec file.
<?xml version="1.0"?> <package > <metadata> <id>testdemo</id> <version>1.0.0</version> <authors>tester</authors> <owners>tester</owners> <requirelicenseacceptance>false</requirelicenseacceptance> <description>testdemo</description> <releasenotes>summary of changes made in release of package. </releasenotes> <copyright>copyright 2017</copyright> <tags>tag1 tag2</tags> </metadata> <files> <file src="multipledll\*.*" target="lib\net461" /> </files> </package>
use pack command:
nuget pack testdemo.csproj.nuspec
- open testdemo package nuget package explorer.
hope can you.
Comments
Post a Comment