RSS

Setting Up Your NuGet Package Source

24 Sep

Setting Up Your NuGet Package Source

Assuming this is for internal use only, your best bet is likely going to be creating an internal nuget server or creating a network share (the network share is considerably slower than the nuget server) to house all of your NuGet packages.  If this is meant to be externally accessible, then you might want to consider letting NuGet host it.

For a cool and practical example, we created a network shared folder on our build server.  Every time the package builds, we have a nant script that packs and sends the package to the shared folder.  Voila!  NuGet now knows of the new version.

It’s worth mentioning that all of your .nupkg files do NOT have to be in the same folder.  You can set up your folder structure however you’d like, and NuGet will find everything just fine.

For example, our package source has a folder for each package:

\\MY-SERVER\SharedFolderName
    \PackageA
        PackageA.1.0.0.0.nupkg
        PackageA.1.1.0.0.nupkg
        PackageA.1.2.0.0.nupkg
    \PackageB
        etc.

About these ads
 
1 Comment

Posted by on September 24, 2013 in C#, NuGet, Visual Studio Tricks

 

One response to “Setting Up Your NuGet Package Source

  1. Savannah

    June 17, 2014 at 1:57 pm

    Thanhk you, I’ve recently been loloking for information about
    this topc foor a while and yourfs is the
    greatest I have camje upon tjll now. But, whwt
    oncerning thee conclusion? Aree you positive concerrning the supply?

     

Your Thoughts?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: