The NuGet Blog

The latest news, updates, and insights from the NuGet team

Recent NuGet Gallery Updates

The NuGet Gallery crew has gotten into a rhythm of publishing updates every 2 weeks. With the increased update frequency, we found that we needed to create a changelog to highlight new features. That changelog is now available directly from within our source repository on GitHub. You can access the changelog directly here: https://github.com/...

The March 6th NuGet Gallery Outage

On March 6th 2013, nuget.org's package download was broken for one and a half hours. Some outages involve factors beyond our control; this time it was very much our own fault and we would like to apologize. We also want to openly discuss the outage and reassure you that we are working on preventing reoccurences. Timeline of events The outage...

Improved search syntax on nuget.org and in NuGet Visual Studio extension

The NuGet team recently deployed a new and very useful search capability on nuget.org, which allows you to narrow your search to a pariticular attribute of a NuGet package. For example, if you want to search for packages which contain 'elmah' within the Id, you type 'id:elmah'. (Note that this will execute a 'contains' search, not an exact ...

Introducing Package Statistics

We have introduced a new feature on http://nuget.org where you can see download statistics for packages. With this initial drop, we hope to whet your appetite and collect your input on further statistics features; it's a mere fraction of what we can imagine. Statistics Tab At the top of the site, a new 'Statistics' tab is displayed. (image...

Workflow Changes for CodePlex Issues

A couple weeks ago, some of you noticed that the core team closed a few issues on http://nuget.codeplex.com that were in the “Soonish” release. The items that were closed were feature suggestions that, while not bad ideas, were things that the core team decided weren’t going to make the cut for the next few releases. The pushback from ...

Managing Package Owners on nuget.org

While each NuGet package's nuspec metadata defines the package's owner(s), the NuGet gallery at nuget.org ignores that piece of nuspec metadata. Instead, ownership of a package is defined by who publishes the package to the gallery. Sometimes this metadata needs to be managed beyond the initial package publishing too, which means the owner ...

A quick tutorial on the Update-Package command

Among the supported commands in NuGet's Package Manager Console, Update-Package is arguably the most powerful in terms of its supported parameters and switches. The primary purpose of the command is to update package(s) in your projects to a higher (possibly latest) version. However, the provided parameters allow you to twist this behavior in ...

Creating custom package rules for your build

When you build your NuGet packages using nuget.exe, you may have noticed that sometimes you get a warning about the created package. Here's one example: (image) This warning is generated by one of NuGet's package analysis rules. Think of these as the NuGet equivalent of an FxCop rule. When nuget.exe creates a package, it automatically ...

Invoking NuGet Services from inside Visual Studio

One of the best kept secrets of the NuGet extension is that besides the UI that everyone has become familiar with, it also exports some useful services, via MEF, which allow other components in VS to interact with NuGet. These include installing packages, uninstalling packages and querying for installed packages. Over the past year, the NuGet...

Recent Changes to Package Restore Consent

When we released NuGet 2.0, one of the changes included the addition of a privacy-related constraint to the package restore feature. More specifically, NuGet 2.0 required that you provide explicit consent, via either a checkbox in the package manager configuration dialog or an environment variable, before it would successfully download ...