这就是我现在对nuget pack所做的:
nuget.exe pack myapp.csproj -IncludeReferencedProjects -Properties Configuration=Release;prerelease=INeedToSetThisFromTheCommandNotStaticConfigFile-123
msbuild myapp.csproj /T:pack /p:Configuration=Release;prerelease="-INeedToSetThisFromTheCommandNotStaticConfigFile-123"
prerelease=-ineedtosetthis来自commandnotstaticconfigfile-123: 术语“prerelease=-INeedToSetThisFromTheCommandNotStaticConfigFile-123” 可操作程序。检查名称的拼写,或者路径是否 包括,请验证路径是否正确,然后重试。
在你身上 .csproj 文件,设置标签 Version 成为 $(TheVersion)
.csproj
Version
$(TheVersion)
Configuration=Release;TheVersion=123