Note that there are some explanatory texts on larger screens.

plurals
  1. POEditing Project Properties for Publish Version in team build
    primarykey
    data
    text
    <p>i have a nightly build in my TFS server that runs every night and is working completely fine. we plan to create a clickonce application as well which is currently working fine except the publish version (ApplicationVersion) which we want to automatically increment with each build instead of entering it manually. An important point to mention is that we only want the Revision part to be increment by 1 with each build. e.g 1.1.1.1 for first time and 1.1.1.2 for the next build.</p> <p>Please note as alot of information is available for assembly versioning so i am not at all interested in it, i just want my application version to increment so please do point me in this direction. </p> <p>My VS and TFS server is 2008.Is there any way i can edit my Publish version before build as i do in this case to edit the InstallUrl of the projecte-g</p> <pre><code>&lt;File.RegEx Path="$(BuildDirectory)/Sources/Client/Client/Client.csproj" RegularExpression="&amp;lt;InstallUrl&amp;gt;(.*?)&amp;lt;/InstallUrl&amp;gt;" NewValue="&amp;lt;InstallUrl&amp;gt;$(InstallUrl)&amp;lt;/InstallUrl&amp;gt;" Force="true"/&gt; </code></pre> <p>The publish version is a combination of </p> <pre><code>&lt;ApplicationVersion&gt; and &lt;ApplicationRevision&gt; </code></pre> <p>and in my scenerio it is defined as follows</p> <pre><code>&lt;ApplicationRevision&gt;1&lt;/ApplicationRevision&gt; &lt;ApplicationVersion&gt;1.9.4.%2a&lt;/ApplicationVersion&gt; </code></pre> <p>and then</p> <pre><code>&lt;File.RegEx Path="$(BuildDirectory)/Sources/Client/Client/Client.csproj" RegularExpression="&amp;lt;ApplicationRevision&amp;gt;(.*?)&amp;lt;/ApplicationRevision&amp;gt;" NewValue="&amp;lt;ApplicationRevision&amp;gt;$(ApplicationRevision)&amp;lt;/ApplicationRevision&amp;gt;" Force="true"/&gt; &lt;File.RegEx Path="$(BuildDirectory)/Sources/Client/Client/Client.csproj" RegularExpression="&amp;lt;ApplicationVersion&amp;gt;(.*?)&amp;lt;/ApplicationVersion&amp;gt;" NewValue="&amp;lt;ApplicationVersion&amp;gt;$(ApplicationVersion)&amp;lt;/ApplicationVersion&amp;gt;" Force="true"/&gt; </code></pre> <p>But the value is never incremented after first run. after the first run the value is always 1.9.4.1. Is there any way that it should be incremented for the next Build. Have tried application revision with <code>*+1</code>, <code>#+1</code> ...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload