18

I see in the Stack Overflow footer that the SVN Revision number is displayed. Is this automated and if so, how does one implement it in ASP.NET?

(Solutions in other languages are acceptable)

1

3 Answers 3

6

Make sure that the file has svn:keywords "Rev Id" and then put $Rev$ somewhere in there.

See this question and the answers to it.

Sign up to request clarification or add additional context in comments.

Comments

0

In my rails app I have a secret action which literally does this:

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

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

If I'm wondering if the guy who manages the servers has updated the site recently, I can hit this URL, and have a look.

Comments

0

in our continuous integration setup we use SVNRevisionLabeller and pass the variables from this to MSBuild to use when creating the compiled website dll. It's then available to .NET using GetCurrentAssembly() in the final build.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.