ASP.NET Display SVN Revision Number

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)

  • Source Control for a .Net guy
  • Local Git Server Setup (using bonobo)
  • Dataset Designer.cs generate Designer1.cs after taking update from SVN in VS2013
  • Build Version vs Revision number
  • How can we use version control in a shared work environment?
  • advice on how to structure git repositories with common code
  • Convert Subversion repository to Mercurial
  • How to avoid new Maven modules managed by other VCS than Subversion to be marked as managed by Subversion
  • Missing revisions after “git svn clone”
  • How to fix “containing working copy admin area is missing” in SVN?
  • How to download all files from Chrome Extensions example (subversion repo)?
  • Eclipse VisualSVN error svn E175002: java.lang.NumberFormatException
  • 4 Solutions collect form web for “ASP.NET Display SVN Revision Number”

    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.

    The search seems to be an “OR” instead of an “AND” 🙁 If you do a search for ASP.NET SVN on the search bar, you will not find it on Page 6 or so.

    it definitely should get some refining.

    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.

    In our rails app I have a secret (unpulished url, restricted to a certain class of authenticated user) 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

    Git Baby is a git and github fan, let's start git clone.