The NuGet Blog

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

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 ...

Feed Performance Update

As you might know, NuGet has been having some performance (and timeout) related issues recently. Earlier this week, we completed a deployment that helped, but it didn't address everything. Many users are still seeing slow responses or even timeouts when trying to use the 'Manage NuGet Packages' dialog in Visual Studio. Ongoing Investigation...

Upgrade Successful

Earlier this evening, we announced that the NuGet Gallery would be offline for about an hour during a scheduled upgrade. That upgrade is now complete. We expect this deployment to help address performance issues we've been experiencing for the past week. We will continue to monitor the service and measure the results of this deployment. CDN ...

Expected Downtime – August 22 11pm-12am PDT

As mentioned in the previous post, we've been working to address some performance problems on the NuGet Gallery. The fixes we have in place include some time-consuming database migrations. During our dry run deployments, we found that virtually all requests to the database will time out while these migrations are running. We have decided to ...

NuGet Gallery Performance Issues

Since August 16th, and especially since August 21st, the NuGet Gallery has been exhbiting intermittent performance issues. Some users are reporting errors when attempting to browse or search for NuGet packages from Visual Studio or other clients. Many users are reporting that browsing and searching are slow. There have also been timeout errors...

Results of NuGet CDN Experiment

A little over a week ago, we asked for your help with an experimentt that we were conducting to see whether there was value in enabling CDN support for our packages blob storage container. Over 100 of you responded from all over the world, and the data that you provided made it pretty clear that there was sufficient justification for turning ...