View SVN Version for ASP.NET

In the stack footer, I see that the SVN version number is displayed. It is automated, and if so, how to implement it in ASP.NET?

(Solutions in other languages ​​are acceptable)

+16
Aug 05 '08 at 13:38
source share
4 answers

Make sure that s vn:keywords "Rev Id" and then put $Rev$ somewhere there.

See this question and the answers to it .

+5
Aug 05 '08 at 13:47
source share

The search seems "OR" instead of "AND." If you do an ASP.NET SVN search using the search bar, you will not find it until 6 or so.

This should definitely get some cleansing.

+1
Aug 05 '08 at 14:04
source share

in our continuous integration setup, we use SVNRevisionLabeller and pass the variables from this to MSBuild for use in creating the compiled dll website. It is then available for .NET using GetCurrentAssembly() in the final assembly.

0
Aug 11 '08 at 20:02
source share

In my rails application, I have a secret action that literally does this:

 render :text => 'svn info #{RAILS_ROOT}' 

This is the equivalent of Process.Start( "svn info..." ) if you are only familiar with .NET )

If I’m wondering if the server manager has updated the site, I can go to this URL and see.

0
Aug 11 '08 at 20:50
source share



All Articles