显示nuget包发布说明

adr*_*anm 13 nuget nuspec visual-studio-2013

nuspec参考说,有关阅读发布标签

v1.5每个软件包版本中所做更改的说明.此字段仅在选择" 更新"选项卡时显示,并且包是对先前安装的包的更新.它显示在通常显示描述的位置.

我创建了两个nuspec文件,两个都包含(version当然有不同的标签)

<?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>
Run Code Online (Sandbox Code Playgroud)

我在VS2013中安装了1.0并选择了更新选项卡但我看不到发行说明. Nuget更新

我错过了什么?

adr*_*anm 12

我自己发现了这个.

如果我从中打开"管理NuGet包"对话框,则会显示发行说明project. 从项目管理
但是当我打开它的时候不行solution.

对于我自己的包以及nuget.org,行为是相同的

  • 我在使用NuGet 3.3的Visual Studio 2015上.似乎无论我如何打开它:1)管理NuGet包...(对于项目),或2)管理解决方案的NuGet包...,我没有看到发行说明.我花了更多的时间来追踪更新的发布说明,以便我从NuGet获得的任何生产力好处似乎都会丢失!例如,我目前正在尝试查看Microsoft.ApplicationInsights 2.0.0.0的发行说明,我可以看到是描述!有人找到了在VS 2015中查看发行说明的方法吗? (10认同)
  • 都2020年了,VS 2019还不行 (6认同)
  • 令人难以置信的是,包管理器如此重要的功能在这么长时间内不可用/损坏:/ (4认同)

小智 7

截至 2021 年 3 月,这似乎仍然是 Visual Studio 2019 中的一个问题。我们使用 Azure 在内部发布了许多 nuget 包。包发行说明显示在 Azure UI 中,但不显示在 Visual Studio 中。但是,“说明”确实显示在 Visual Studio 中,因此我调整了说明以包含发行说明。这实际上来自 Directory.build.props 文件,但同样可以嵌入到项目文件中:

        <PackageReleaseNotes>
Release notes added to .nuspec file as <Release Notes> and also to end of Description
        </PackageReleaseNotes>
        <!-- Don't indent text, it makes it hard to read in the nuget package manager-->
        <Description>
Description:
This is the description of our internally produced nuget package

Release Notes:$(PackageReleaseNotes)
        </Description>
Run Code Online (Sandbox Code Playgroud)


dra*_*788 5

有关 VS2015 的 NuGet 存储库中跟踪了此问题。

https://github.com/NuGet/Home/issues/1823