VSTS Build - The replacement token 'version' has no value

后端 未结 1 1651
耶瑟儿~
耶瑟儿~ 2021-01-25 05:49

I have setup my very first Build definition in Visual Studio Team Services (was Visual Studio Online).

It builds, all tests pass and then it finally pops this error:

相关标签:
1条回答
  • 2021-01-25 06:16

    Hang on. Apparently, when you supply your own .nuspec file, the VSO build goes all dumb.

    https://msdn.microsoft.com/en-us/Library/vs/alm/Build/steps/package/nuget-packager

    The packager does not compile the .csproj files for packaging. Each project is packaged only if it has a .nuspec file checked in. The packager does not replace tokens in the .nuspec file (except the element, see Use build number to version package, below). You must supply values for elements such as and . The most common way to do this is to hardcode the values in the .nuspec file.

    So I'll take out my .nuspec file.

    0 讨论(0)
提交回复
热议问题