How to access the current Subversion build number?

前端 未结 16 2167
刺人心
刺人心 2020-11-27 05:43

How can you automatically import the latest build/revision number in subversion?

The goal would be to have that number visible on your webpage footer like SO does.

16条回答
  •  再見小時候
    2020-11-27 05:47

    I use the MSBuild Community Tasks project which has a tool to retrieve the SVN revision number and add it to your AssemblyInfo.vb. You can then use reflection to retrieve this string to display it in your UI.

    Here's a full blog post with instructions.

提交回复
热议问题