SubWCRev这个命令是TortoiseSVN\bin下的命令; 所以前提是你的开发机需要确认安装了SVN的客户端,并且你本机的代码是SVN上down下来的,也就是代码需要是一个working copy;
1.将程序集中的AssemblyInfo.cs拷贝一份为AssemblyInfo.template.cs(生成操作:无)
2.项目的生成事件-生成前事件命令行添加:
SubWCRev $(SolutionDir) $(ProjectDir)Properties\AssemblyInfo.template.cs $(ProjectDir)Properties\AssemblyInfo.cs