AssemblyInfo.cs subversion and TortoiseSVN

后端 未结 7 970
情歌与酒
情歌与酒 2020-12-24 16:03

I\'m using TortoiseSVN and Visual Studio 2008. Is there any way to update my project\'s assemblyinfo.cs with svn\'s version in every build?

For example, 1.0.0.[svn\'

相关标签:
7条回答
  • 2020-12-24 16:32

    In Visual Studio 2008, you can define a pre-build event that can launch a script or small program. Within this script or program, you can use the svnversion command to get the repository revision, then parse your AssemblyInfo.cs and modify the version number to what you desire.

    I'm not sure if TortoiseSVN comes with svnversion, but it does come with the Windows SVN build provided by CollabNet

    0 讨论(0)
提交回复
热议问题