<p>What are the strategies for versioning of a web application/ website?  </p>

<p>I notice that here in the Beta there is an svn revision number in the footer and that's ideal for an application that uses svn over one repository. But what if you use externals or a different source control application that versions separate files?   </p>

<p>It seems easy for a Desktop app, but I can't seem to find a suitable way of versioning for an asp.net web application. </p>

<p><strong>NB</strong> I'm not sure that I have been totally clear with my question.</p>

<ol>
<li>What I want to know is how to build and auto increment a version number for an asp.net application.</li>
<li>I'm not interested in how to link it with svn.</li>
</ol>

[{'answer_id': 29811, 'author': 'UnkwnTech', 'author_id': 115, 'author_profile': 'https://Stackoverflow.com/users/115', 'pm_score': 2, 'selected': False, 'text': '<p>For my big apps I just use a incrementing version number id (1.0, 1.1, ...) that i store in a comment of the main file (usually index.php).<Br />\nFor just websites I usually just have a revision number (1,2,3,...).</p>\n'}, {'answer_id': 29849, 'author': 'saschabeaumont', 'author_id': 592, 'author_profile': 'https://Stackoverflow.com/users/592', 'pm_score': 2, 'selected': False, 'text': '<p>I have a tendency to stick with basic integers at first (1,2,3), moving onto rational numbers (2.1, 3.13) when things get bigger... </p>\n\n<p>Tried using fruit at one point, that works well for a small office. Oh, the \'banana\' release? <em>looks over in the corner</em> "yeah... that\'s getting pretty old now..."</p>\n\n<p>Unfortunately, confusion started to set in when the development team grew, is it an Orange, or Mandarin, or Tangelo? It <em>looks</em> ok. What do you mean "rotten on the inside?"</p>\n\n<p>... but in all honesty. Setup a separate repository as a master, development goes on in various repositories. For every scheduled release everything is checked into the master repository so that you can quickly roll back when something goes wrong. \n(I\'m assuming dev/test/production are all separate servers, and dev is never allowed to touch production or the master repository....)</p>\n'}, {'answer_id': 29852, 'author': 'Hanno Fietz', 'author_id': 2077, 'author_profile': 'https://Stackoverflow.com/users/2077', 'pm_score': 0, 'selected': False, 'text': '<p>I maintain a system of web applications with various components that live in separate SVN repos. To be able to version track the system as a whole, I have another SVN repo which contains all other repos as external references. It also contains install / setup script(s) to deploy the whole thing. With that setup, the SVN revision number of the "metarepository" could possibly be used for versioning the complete system.</p>\n\n<p>In another case, I include the SVN revision via <a href="http://svnbook.red-bean.com/en/1.2/svn.advanced.props.html#svn.advanced.props.special.keywords" rel="nofollow noreferrer" title="SVN keywords">SVN keywords</a> in a class file that serves no other purpose (to avoid the risk of keyword substitution breaking my code). The class in that file contains a string variable that is manipulated by SVN and parsed by a class method.</p>\n\n<p>An inconvenience with both approaches is that the revision number is not automatically updated by changes in the externals (approach 1) or the rest of the code (approach 2).</p>\n'}, {'answer_id': 30456, 'author': 'Ellen Teapot', 'author_id': 1914, 'author_profile': 'https://Stackoverflow.com/users/1914', 'pm_score': 0, 'selected': False, 'text': '<p>During internal development, I\'m using milestone numbers (M1, M2, M3...). After release, I\'ll probably just update dates ("the January 2009 update").</p>\n'}, {'answer_id': 33890, 'author': 'John Asbeck', 'author_id': 1767, 'author_profile': 'https://Stackoverflow.com/users/1767', 'pm_score': 2, 'selected': False, 'text': '<p>I think what you are looking for is something like this:  <a href="http://weblogs.asp.net/bradleyb/archive/2005/12/02/432150.aspx" rel="nofollow noreferrer">How to auto-increment assembly version using a custom MSBuild task</a>.  It\'s a little old but I think it will work.</p>\n'}]
['https://Stackoverflow.com/questions/29802', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1116/']