TFS 2015 构建任务 - NuGet 打包程序
TFS 2015 Build Task - NuGet Packager
我目前正在设置构建定义来打包 NuGet。这是我当前的构建任务。它在解决方案成功构建后执行。
我正在使用 nuspec 文件来决定包将显示哪些信息。我的 nuspec 文件包含对信息的引用(即从 assemblyinfo.cs 文件中提取)。
运行 构建定义我收到以下错误。
Package NuGet 任务下的 TFS 2015 是否不支持替换令牌?
The packager does not replace tokens in the .nuspec file (except the
<version/>
element). You must supply values for elements such as
<id/>
and <description/>
. The most common way to do this is to
hardcode the values in the .nuspec
file.
Source Link: Pack NuGet packages
使用 令牌替换 时,请确保您正在尝试 nuget 打包 csproj 文件,而不是 nuspec 文件
nuget pack myproject.csproj -IncludeReferencedProjects -Prop Configuration=Release
当给定与 csproj 文件相同的名称时,会自动选取 nuspec。
请参考这个类似的问题:nuget: "The replacement token 'id' has no value"
我目前正在设置构建定义来打包 NuGet。这是我当前的构建任务。它在解决方案成功构建后执行。
我正在使用 nuspec 文件来决定包将显示哪些信息。我的 nuspec 文件包含对信息的引用(即从 assemblyinfo.cs 文件中提取)。
运行 构建定义我收到以下错误。
Package NuGet 任务下的 TFS 2015 是否不支持替换令牌?
The packager does not replace tokens in the .nuspec file (except the
<version/>
element). You must supply values for elements such as<id/>
and<description/>
. The most common way to do this is to hardcode the values in the.nuspec
file.Source Link: Pack NuGet packages
使用 令牌替换 时,请确保您正在尝试 nuget 打包 csproj 文件,而不是 nuspec 文件
nuget pack myproject.csproj -IncludeReferencedProjects -Prop Configuration=Release
当给定与 csproj 文件相同的名称时,会自动选取 nuspec。
请参考这个类似的问题:nuget: "The replacement token 'id' has no value"