Page 1 of 1

NuGet

#1 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2262
  • View blog
  • Posts: 9,462
  • Joined: 29-May 08

Posted 14 May 2011 - 01:51 PM

NuGet Package Management System

Prequisites

A VS2010 based IDE or SharpDevelop. (It is also possible to use NuGet without and IDE but I wont be mentioning how.)
Download or Install NuGet.

I created my package via the NuGetPackage Explorer.

NuGet


Obtaining NuGet Packages

In the Solution Explorer, right click then click Add Package Library Reference.
This will bring up to Package Manager, where you can browse and search for package. Get updates.

Attached Image

But do something a little cleaver. Click on setting in the bottom right corner

Attached Image

Notice how I have a package source called lib that lives at folder on my Machine.

This was achieved by click on the Add button and choosing a Folder or Shared Folder.


Creating a simple Package.

Launch the NuGet Package Explorer.

Attached Image

File->New

Attached Image

Edit->Edit Package MetaData

Attached Image

Change the information to be relative to your package. You can also include any other packages that your package depends on.

Adding Content

Content -> Add

Including a dll with a package, Add -> Lib Folder.

Attached Image

Saving as a package

File -> Save As

Select the directory where you want to create the package ( I use Public/NuGet Packages/)


Publish to the NuGet Server

File -> Publish

Enter your API key (obtain one my registering at NuGet.org.
Click Publish.

Is This A Good Question/Topic? 0
  • +

Replies To: NuGet

#2 Sergio Tapia  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1253
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Posted 14 May 2011 - 02:01 PM

If our libraries depend on other libraries, such as json.Net or HtmlAgilityPack, do we add those .dll files as well?
Was This Post Helpful? 0
  • +
  • -

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2262
  • View blog
  • Posts: 9,462
  • Joined: 29-May 08

Posted 14 May 2011 - 02:18 PM

If those also have/are NuGet package then they would be a Dependency. (So if it get updated then your package get the update also.)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1