I'm using a Shared file between each project (Add Existing item, and make it
a link). Then i have this in that shared file


[assembly: AssemblyVersionAttribute("2.8.*")]
[assembly: AssemblyFileVersion("2.8.0.0")]

...and remove the one in the AssemblyInfo.cs

Manually increment the 2.8 to 2.9 etc. the second number I've matched up to
be our Iteration/Sprint number. So 2.8 = version 2, iteration 8. The third
and fourth numbers end up auto generating based on the date and time of day.


Years ago I wrote a Nant extension which automatically checked out the file
in source control, incremented the version number depending if it was a
major or minor build, checked it in, then did the build. I was quite proud
of that. :)
On Fri, Mar 18, 2011 at 10:44 AM, Ian Thomas <[email protected]> wrote:

>  What do you guys use for VS2008 version increments?
>
> I have tried a Codeplex utility (Build version Increment v2.4) but it gives
> me an odd Error, only on a Debug compilation (Build is OK), and only for the
> \bin\release\ - as below. Strangely, the \Debug\ compile works and the
> application runs as usual.
>
> Error (x 2) - Failed to locate attribute   "AssemblyFileVersion" //
>  “AssemblyVersion"   in file "D:\...\bin\Release\test.exe"
>
> I’m not on top of getting sensible build increments from VS’s inbuilt
> Assembly Information (eg, unchanging File version). Obviously I need some
> tutoring – can someone point me to a page on MSDN?
>  ------------------------------
>
> Ian Thomas
> Victoria Park, Western Australia
>

Reply via email to