Editing project properties for publishing to the command assembly

I have a nightly build on my TFS server that works every night and works perfectly fine. we also plan to create a clickonce application that currently works great, except for the publication version (ApplicationVersion), which we want to automatically increase with each assembly, rather than manually entering it. It is important to note that we want the Revision part to increase by 1 with each assembly. for example 1.1.1.1, and 1.1.1.2 for the next build.

Please note that a lot of information is available for building the version, so this does not interest me at all, I just want my version of the application to increase, so please point me in this direction.

My VS and TFS server is 2008. Is there a way to change my publication version before assembly, as in this case, to edit the InstallUrl project-g

<File.RegEx Path="$(BuildDirectory)/Sources/Client/Client/Client.csproj"
      RegularExpression="&lt;InstallUrl&gt;(.*?)&lt;/InstallUrl&gt;"
      NewValue="&lt;InstallUrl&gt;$(InstallUrl)&lt;/InstallUrl&gt;" Force="true"/>

The publication version is a combination

<ApplicationVersion> 
and 
<ApplicationRevision> 

and in my scenerio is defined as follows

<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.9.4.%2a</ApplicationVersion>

and then

<File.RegEx Path="$(BuildDirectory)/Sources/Client/Client/Client.csproj"
      RegularExpression="&lt;ApplicationRevision&gt;(.*?)&lt;/ApplicationRevision&gt;"
      NewValue="&lt;ApplicationRevision&gt;$(ApplicationRevision)&lt;/ApplicationRevision&gt;" Force="true"/>

    <File.RegEx Path="$(BuildDirectory)/Sources/Client/Client/Client.csproj"
      RegularExpression="&lt;ApplicationVersion&gt;(.*?)&lt;/ApplicationVersion&gt;"
      NewValue="&lt;ApplicationVersion&gt;$(ApplicationVersion)&lt;/ApplicationVersion&gt;" Force="true"/>

But after the first run, the value never increases. after the first run, the value is always 1.9.4.1. Is there any way that it should be increased for the next build. Tried the version of the application with the help of *+1, #+1...

+5
source share
1 answer

TFS TFS 2012. VS2008 (TFS 2013 ) , 2008.

TFS Community Build Extensions , , .

  • ClickOnce - clickonce
  • TfsVersion -

, , ( , ) TFS 2008. , .

+1

All Articles