Codedom 生成的文件中的版本号由什么控制?
什么控制 codedom 生成的文件内部的版本号?
我们的一些开发人员得到:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4005
而其他人得到:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3082
但每个人似乎都在运行 .Net 3.5 SP1。
为什么有些版本号是 4005,而另一些版本号是 3082?
这对源代码控制来说是一个真正的痛苦。
What controls the version number inside of a codedom generated file?
Some of our developers get:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4005
while others get:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3082
But everyone seems to be running .Net 3.5 SP1.
Why do some have 4005 and others have 3082 as the build number?
This is a real pain for source control.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尽管每个人都在运行 .NET 3.5 SP1,但他们不会运行完全相同版本的 .NET 3.5 SP1。具体来说,无论出于何种原因,他们都会运行不同的精确构建。我怀疑操作系统存在差异,或者只是对 Windows 更新的懒惰。
Although everyone is running .NET 3.5 SP1, they won't be running the exact same versions of .NET 3.5 SP1. Specifically, they will be running different precise builds for whatever reason. I would suspect OS differences, or just laziness with Windows updates.
补丁(例如通过 Windows 更新提供的小错误修复)是“罪魁祸首”。
Patches (such as minor bug fixes delivered through Windows Update) are the one to "blame" for.
是的,这是快速修复,如果您将 Windows 自动更新设置保留为默认,其中一些修复会自动下载并安装。
如果它确实引起了问题,那么您可能会传递一个自述文件或某种策略,让每个人都知道您现在正在使用哪个版本。但如果最后的数字不同,则意味着它只包含错误修复,幸运的是,这很少会破坏功能。除了解决方法代码,以及旨在绕过或修复那些刚刚修复的框架错误的黑客......
Yeah, it's quick fixes, some of them download and install automatically if you left windows autoupdate settings at default.
If it really is causing problems, then you might pass a readme or some kind of policy for everyone to know, which version you are using right now. But if olny the last numbers are different, that means it just contains bugfixes, which fortunately rarely breaks funcionality. Except for workaround code, and hacks intended to bypass or fix those framework bugs which just got fixed ...