是否可以为 Azure DevOps Pipeline 中添加的 NuGet 包添加描述?
![enter image description here](https://i.stack.imgur.com/vvjNV.png)
Azure DevOps Nuget 管道步骤中的 Nuget 包描述
众所周知,当我们打包 nuget 包时.csproj
文件,nuget将从文件中获取包信息AssemblyInfo.cs
在项目中,比如assembly: AssemblyVersion
, assembly: AssemblyDescription
等等。
因此,要添加 NuGet 包的描述,我们可以添加以下描述:assembly: AssemblyDescription
in the AssemblyInfo.cs
:
[assembly: AssemblyDescription("This is Test Decription!!!")]
然后将此更新推送到 Azure DevOps 存储库,在这种情况下,我们可以使用该描述打包包。
此外,如果您想使用.nuspec
文件,我们需要使用命令行在本地计算机上创建此文件nuget spec "..\*.csproj"
,然后修改<description>$description$</description>
in the .nuspec
,将此文件上传到存储库。
检查文件创建 NuGet 包来创建.nuspec
file.
希望这可以帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)