Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show NuGet package release notes

The nuspec reference says about the releaseNotes tag

v1.5 A description of the changes made in each release of the package. This field only shows up when the Updates tab is selected and the package is an update to a previously installed package. It is displayed where the Description would normally be displayed.

I created two nuspec files, both containing (with different version tags of course)

<?xml version="1.0"?>
<package >
  <metadata>
    <id>TestReleaseNotes</id>
    <version>1.0</version>
    <authors>adrianm</authors>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>Description</description>
    <releaseNotes>Release notes</releaseNotes>
  </metadata>
  <files>
    <file src="Test.cs" target="content" />
  </files>
</package>

I installed 1.0 in VS2013 and selected the update tab but I can't see the release notes. Nuget update

What am I missing?

like image 251
adrianm Avatar asked Jun 03 '15 06:06

adrianm


People also ask

How do I add release notes to NuGet?

NuGet packages now include support for release notes. The release notes only show up when viewing Updates for a package, so it doesn't make sense to add them to your first release. To add release notes to a package, use the new <releaseNotes /> metadata element in your NuSpec file.

How can I see what's in my NuGet package?

The NuGet Package Explorer should make it a little easier to view the contents. The NuGet Gallery (e.g. https://www.nuget.org/) has a "Download" link on the right hand side, otherwise just install the package into an empty project and then take a peek.

How do I view NuGet package contents in Visual Studio?

NuGet Package ManagerIn Solution Explorer, right-click References and choose Manage NuGet Packages. If you want more information on the NuGet Package Manager, see Install and manage packages using Visual Studio. Accept any license prompts. If prompted to review changes, select OK.


1 Answers

Found this out myself.

The release notes are displayed if I open the "Manage NuGet packages" dialog from the project. manage from project
but not when I open it from the solution.

The behaviour is the same for my own packages as well as nuget.org

like image 64
adrianm Avatar answered Oct 02 '22 12:10

adrianm