The NuGet team released an updated NuGet Package Manager extension for WebMatrix on March 26, 2014. This update can be installed from the WebMatrix Extension Gallery using the following steps:
- Open WebMatrix 3
- Click the Extensions icon in the Home ribbon
- Select the Updates tab
- Click to update NuGet Package Manager to 2.6.1
- Close and restart WebMatrix 3
Here are the salient points from the release notes.
This extension update addresses two of the biggest issues users have faced consuming NuGet packages within WebMatrix. The first was a NuGet schema version error and the second was a bug leading to zero-byte DLLs in the bin folder.
This latest release provides compatibility with the newest NuGet packages, preventing the schema error from occurring. New versions of packages including Microsoft.AspNet.WebPages can now be installed in WebMatrix. Some of these packages were using NuGet features such as XDT config transforms, which wasn’t supported in WebMatrix until now.
Other Recent Improvements
When NuGet Package Manager 2.8 was released for Visual Studio, we also released NuGet Package Manager 2.5.0 for WebMatrix. While this was mentioned in the NuGet 2.8 Release Notes, we didn’t mention the specific new features that update introduced.
Because we extracted the NuGet functionality out of WebMatrix 3 into an extension contributed to the NuGet open-source project, we’ve been able to make these important updates without requiring an update to WebMatrix itself. If you have other issues using NuGet within WebMatrix, let us know by filing issues on CodePlex so that we can address them.