AzureDevOps/VSTS Build - Could not find version number data in BUILD_BUILDNUMBER

后端 未结 4 2074
[愿得一人]
[愿得一人] 2021-02-01 15:45

Setting up a simple class library to build and publish to VSTS\'s own feed, I see this error when the NuGet package runs.

Could not find version number da

4条回答
  •  故里飘歌
    2021-02-01 16:12

    I had a variable in my .nuspec file:

    Build#$build$
    

    that was incorrectly parameterized in the package build step. With the package step open in the build editor, I expanded the 'Advanced' section added to 'Additional Build Properties' this text

    build=$(Build.BuildNumber)
    

提交回复
热议问题