18

nuspec参考说明了 releaseNotes 标签

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>

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

我错过了什么?

4

3 回答 3

13

我自己发现了这一点。

如果我从project. 从项目管理
但当我从solution.

我自己的包和 nuget.org 的行为是相同的

于 2015-06-03T11:17:31.903 回答
5

截至 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>
于 2021-03-24T14:10:25.680 回答
2

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

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

于 2016-11-23T22:11:01.297 回答