Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Host Your Own NuGet Feed: Local Source vs NuGet.Server vs NuGetGallery

If your team publishes internal .NET libraries, running a private NuGet feed gives you control over package distribution, versioning, and access. This guide explains three self-hosted approaches—local folder sources, NuGet.Server, and NuGetGallery—and shows how to publish and consume packages with each.

Originally published on 2015-11-21; fully revised and updated.

Hosting your own NuGet feed

Choose the right hosting option

The best private feed setup depends on how much management, UI, and automation your team needs.

OptionSetup complexityPackage publish methodWeb UIBest for
Local folder sourceLowCopy files or nuget add to a folder/shareNoSmall teams and simple internal sharing
NuGet.ServerMediumnuget push to HTTP endpoint with API keyMinimalInternal feeds with basic server capabilities
NuGetGalleryHighServer-backed publish flowYesOrganizations needing a full package portal

Option 1: Local file-based package source

A folder source is the fastest way to share packages. Packages are stored as .nupkg files on disk or a network share. It is easy to start, but there is no built-in web feed UI or server-side management layer.

mkdir -p /srv/nuget-feed
nuget add MyLibrary.1.0.0.nupkg -Source /srv/nuget-feed
nuget list -Source /srv/nuget-feedCode language: PHP (php)

Option 2: Host NuGet.Server in an ASP.NET app

This is the closest match to the original tutorial: create an empty ASP.NET web app in Visual Studio, install NuGet.Server, and use the generated /nuget endpoint as a private package source.

Minimal setup flow

  • Create an empty ASP.NET web application in Visual Studio.
  • Open Package Manager Console and install NuGet.Server.
  • Run the app and browse to http://localhost:<port>/nuget.
  • Configure an API key in app settings, restart, then publish with nuget push.
Install-Package NuGet.ServerCode language: CSS (css)
<appSettings>
  <add key="apiKey" value="CHANGE_ME" />
</appSettings>Code language: HTML, XML (xml)
nuget setApiKey SECRETKEY -Source http://localhost:42386/nuget
nuget push MyLibrary.1.0.0.nupkg -Source http://localhost:42386/nuget
nuget list -Source http://localhost:42386/nugetCode language: PHP (php)

Option 3: Run NuGetGallery for a full portal experience

If you need a richer, gallery-style package experience, use NuGetGallery. The original post pointed to this repository. Compared with NuGet.Server, it is a larger deployment with more operational overhead.

git clone https://github.com/NuGet/NuGetGallery.gitCode language: PHP (php)

Package publish and consume workflow

flowchart LR
    A[Developer creates nupkg] --> B[Publish package]
    B --> C{Feed type}
    C --> D[Folder source]
    C --> E[NuGet.Server]
    C --> F[NuGetGallery]
    D --> G[Consumer restores package]
    E --> G
    F --> G
    G --> H[Build and release]

Client configuration example

To make a private feed available to developers and CI agents, add it to NuGet.Config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="PrivateFeed" value="http://nuget.example.com/nuget" />
  </packageSources>
</configuration>Code language: HTML, XML (xml)

Best practices and common pitfalls

  • Start simple: use a folder source or NuGet.Server first, then move to NuGetGallery only if you need portal features.
  • Secure publishing endpoints with strong API keys and controlled network access.
  • Standardize feed configuration in source-controlled NuGet.Config files.
  • Define package retention and cleanup policies to avoid uncontrolled storage growth.
  • Validate commands and app settings against the exact NuGet tooling and server version you run.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

The Main Challenges of Metaverse Game Development

The news about tech giants investing in metaverse development ignited a lot of discussions about its potential use cases. GameDev has turned up at the forefront of…

Read More

Top 10 AI Data Integration Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI data integration tools are pivotal for businesses navigating the complexities of modern data ecosystems. These tools combine artificial intelligence with data integration processes…

Read More

Top 10 Presentation Software Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, creating engaging and impactful presentations is more than just slides with bullet points—it’s about telling a story, conveying ideas visually, and keeping your audience…

Read More

Top 10 AI Ad Copy Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI ad copy tools have become indispensable for marketers, businesses, and content creators aiming to craft compelling, high-converting advertisements at scale. These tools leverage…

Read More

Top 10 Enterprise Resource Planning (ERP) Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, Enterprise Resource Planning (ERP) software is more vital than ever for organizations that seek to streamline their operations, improve efficiency, and make data-driven decisions….

Read More

Top 10 Job Costing Software Tools in 2026: Features, Pros, Cons & Comparison

Introduction Job costing software is a vital tool for businesses, especially in industries like construction, manufacturing, and services, where accurately tracking the costs associated with individual projects…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
1
0
Would love your thoughts, please comment.x
()
x