Is it possible to build an assembly, and force it to a specific build #?
+8
A:
Sure. Just set the last digit of
[assembly: AssemblyVersion("1.0.0.0")]
to the build number you want.
Otávio Décio
2009-12-03 19:30:35
In your project's AssemblyInfo.cs
Jason Punyon
2009-12-03 19:32:07
@Jason - I could be wrong but I believe it can be on any source file, really.
Otávio Décio
2009-12-03 19:33:42
@ocdecio: It can be anywhere...but AssemblyInfo.cs is probably the best place for it...
Jason Punyon
2009-12-03 19:34:38
@Jason - yes, that is reasonable if you want to follow Visual Studio's defaults.
Otávio Décio
2009-12-03 19:35:28
+1
A:
Just apply the [assembly: AssemblyVersion("A.B.C.D")] attribute the this is usually in the AssemblyInfo.cs file, though can be in any code file. The last portion of the version (A.B.C.D) - D , is the build number.
Preet Sangha
2009-12-03 19:31:26