Pergunta

I Created an Octopack nuget package of an asp.net mvc website using team-city. I also added build parameters i.e for package version numbers to use team-city's build number %build.number% and not the default as in AssemblyInfo.cs However my package numbers still come up as 1.0.0.0 regardless of the build parameters that I set.

I have tried to use the .* in AssemblyInfo.cs which auto generates version numbers but I would like to use team-city's build numbers as I have defined them .

Is there something else I'm missing?

Foi útil?

Solução

Paul Stovell created a TeamCity plugin. You can read about it here.

Once you have that installed, you should configure your build step to look like this:

enter image description here

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top