tags:

views:

69

answers:

2

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
In your project's AssemblyInfo.cs
Jason Punyon
@Jason - I could be wrong but I believe it can be on any source file, really.
Otávio Décio
@ocdecio: It can be anywhere...but AssemblyInfo.cs is probably the best place for it...
Jason Punyon
@Jason - yes, that is reasonable if you want to follow Visual Studio's defaults.
Otávio Décio
+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