msbuild包指定版本吗?

时间:2019-03-14 20:17:02

标签: windows msbuild nuget

这就是我现在使用nuget pack的方法:

nuget.exe pack myapp.csproj -IncludeReferencedProjects -Properties Configuration=Release;prerelease=INeedToSetThisFromTheCommandNotStaticConfigFile-123

msbuild包说不

msbuild myapp.csproj /T:pack /p:Configuration=Release;prerelease="-INeedToSetThisFromTheCommandNotStaticConfigFile-123"
  

prerelease = -INeedToSetThisFromTheCommandNotStaticConfigFile-123:   术语'prerelease = -INeedToSetThisFromTheCommandNotStaticConfigFile-123'   无法识别为cmdlet,函数,脚本文件或   可操作的程序。检查名称的拼写,或者路径是否为   包括在内,请验证路径正确无误,然后重试。

1 个答案:

答案 0 :(得分:0)

在您的.csproj文件中,将标签Version设置为$(TheVersion),然后从命令行设置此参数。

Configuration=Release;TheVersion=123

相关问题