Nuget quick guide

Create your own package using nuget.exe. At this point, you need to have your .nuspec file and the files (.dll/static files) organized in folders that you wish to deployed.

Sample command line that you might use is as follows:
c:\nuget pack test.nuspec

You may have folders as follows

lib
--\NetFramework 4.0
--\NetFramework 1.1

Sample layout of your .nuspec file are

<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>sample</id>
<version>1.2.3</version>
<authors>Kim Abercrombie, Franck Halmaert</authors>
<description>Sample is an example package that exists only to show a sample .nuspec file.</description>
<language>en-US</language>
<licenseUrl>http://sample.codeplex.com/license</licenseUrl>
<projectUrl>http://sample.codeplex.com/</projectUrl>
</metadata>
<files>
<file src="lib\*.dll" target="lib" />
<file src="lib\.NetFramework 1.1\*.dll" target="lib1" />
<file src="lib\.NetFramework 4.0\*.dll" target="lib4" />
</files>
</package>



Quick commands

a) install - install-package
e.g . install-package sample (sample is the id of your nuget package)

b) update - update-package
e.g. update-package sample

c) remove - uninstall-package sample

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm