Linking Tortoise SVN revision number to assembly version

后端 未结 4 1672
一整个雨季
一整个雨季 2020-12-30 03:53

I\'m developing a program in C# .net in visual studio and version controlling it with tortoise SVN.

at present I\'m creating the assembly version based on the build

4条回答
  •  被撕碎了的回忆
    2020-12-30 04:33

    You can use something like this to get the svn revision number.

    
         
    
         
         
         
         
    

    It pretty much outputs the svn revision to a xml file then xml peeks to get the revision number.

    You could perhaps use this as a pre-build event and then update your assemblyinfo with the new version number.

    Also check this thread for more info SVN Revision Version in .NET Assembly w/ out CC.NET

提交回复
热议问题