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

--\NetFramework 4.0
--\NetFramework 1.1

Sample layout of your .nuspec file are

<?xml version="1.0" encoding="utf-8"?>
<authors>Kim Abercrombie, Franck Halmaert</authors>
<description>Sample is an example package that exists only to show a sample .nuspec file.</description>
<file src="lib\*.dll" target="lib" />
<file src="lib\.NetFramework 1.1\*.dll" target="lib1" />
<file src="lib\.NetFramework 4.0\*.dll" target="lib4" />

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


Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

OpenCover code coverage for .Net Core

A quick tutorial for OWASP ZAP tool for beginners