Setting Up Your NuGet Package Source

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.


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 )

Connecting to %s