我遇到这个问题已经有一段时间了,也许社区中的某个人可以提供帮助...基本上我为我的程序集配置了自动版本控制“
”。
如果我在自己的工作副本中进行代码更改并构建它将增加修订号。但是,如果我使用其他开发人员所做的更改来更新我的工作副本,并且自己进行构建而不更改代码 - Visual Studio 2008 不会注意到代码中的更改,也不会重新计算修订号。此时我已经放弃了维护幻象方法,我更改了该方法以在构建之前强制使用新的修订号。
关于如何让自动版本控制正确识别从源代码控制引入的程序集更改而不是在运行构建的计算机上完成的程序集更改,有什么建议吗?
谢谢。
I have been having this issue for a while and maybe someone in the community can assist...basically I have auto-versioning configured for my assemblies "<Assembly: AssemblyVersion("2.3.0.*")>
".
If I make a code change in my own working copy and build it will increment the revision number. However, if I update my working copy with changes made by other developers and make a build without doing a code change myself - Visual Studio 2008 doesn't notice the change in code and doesn't recalculate the revision number. I have resigned myself at this point to maintaining a phantom method that I change to force a new revision number before a build.
Any suggestions on how I can get the auto-versioning to correctly identify changes to the assembly when they are brought in from source control rather than done on the machine running the build?
Thanks.
发布评论