Using $Rev:$ SVN keyword in C# code? -


does know syntax use file revision keyword within code in c#? know how use in sql server can't seem syntax right. have added property file in display version.

your c# files should contain $lastchangedrevision: $ svn revision added. however, need set svn:keywords property correctly files in want value expanded.

for example, following result in string containing revision.

string revision = "$lastchangedrevision: $"; 

the svn:keywords property should include lastchangedrevision in space-separated list of values.

you can make automatic cs extension editing tortoisesvn configuration. this, go tortoisesvn explorer menu , select settings.... on general tab, click edit button next subversion configuration file:.

scroll down , add line 1 [auto-props] section (just example, may have more or less keywords , may set other properties):

*.cs = svn:keywords=lastchangeddate lastchangedby lastchangedrevision id url; 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -