RMK
RMK

Reputation: 877

What controls version number inside codedom generated file?

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.

Upvotes: 4

Views: 497

Answers (3)

Newszi
Newszi

Reputation: 41

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 ...

Upvotes: 0

Alfred Myers
Alfred Myers

Reputation: 6453

Patches (such as minor bug fixes delivered through Windows Update) are the one to "blame" for.

Upvotes: 1

Rushyo
Rushyo

Reputation: 7604

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.

Upvotes: 1

Related Questions