PBMining

Searching...
Sunday, February 19, 2012

Create nuget package using Nuget Package explorer Gui tool

11:47 PM

In this post i am going to explain how to create Nuget Package using Nuget package explorer Gui tool. before we start you need a Nuget Package explorer tool.you can download it from here Nuget Package Explorer V2.2 and install it. it take few seconds to install.

Ok, now we ready to start.

Step 1:-Create New Package.

create nuget Package

Step 2:-Edit Package Metadata.

edit package metadata

you can write additional information about in package in package metadata like authors,owners,descriptions,icon,descriptions,language and so on.

edit package metadata

you can add different type of content related to your package using Nuget package explorer.

add contents to you nuget package

Step 3:Add content and code library to your nuget package.

add content folder to your package,you can add your package settings file(Web.config ,App.config) or other help file in this folder. we are going to add web config file to this folder.

Step 4: Create web config Transform file.

create sample file add your config code to file and save that file with .transform extension(ex. web.config.transform) so visual studio inject your config code to particular section.


add contents to you nuget package

Step:5add Library folder and your code library to your nuget package (for test i add JsonDotNet 2.0 library to package) and save your package. add code library to your package and save it

after saving your package last step to test your package. you can upload it to nuget site ot you can test it locally from hard disk. i am going to test it from local disk. for that you have to configure package manager settings to Visual studio. for configuration Go through Tools -> Library Package Manager -> Package Manager Settings.

add nuget package from local disk

Remove checked from all web package url and Add new path from local disk nad select it. and install it using Package Manager Console write this command for install your package install-package MyPackage.and that's it.