0

我希望将我的项目 nuspec 文件复制到已发布的目录中。Nuspec 文件的属性设置为始终复制,但仍未将其复制到部署目录。有什么方法可以将它复制到已部署的文件夹中,因为我们正在更新其中的版本并希望从该文件中查看已部署的版本。

请指导

4

1 回答 1

0

When a Release is deployed the Nuspec file is never copied to the package installation directory as it's considered to me Metadata by Octopus. As an alternative you can use the Deploy.ps1 PowerShell script to write the version number to a file.

$version = $OctopusParameters["Octopus.Release.Number"]
$version | Out-File "Version.txt"
于 2014-07-18T04:49:16.463 回答