471,350 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Auto-increment AssemblyFileVersion?

I am using the "1.0.*" pattern to auto-increment the AssemblyVersion
attribute of my project's assembly. I'd like to have the assembly's
AssemblyFileVersion attribute match this value, so that I can see the
assembly version in the Windows XP Explorer. In other words, I'd like to
synchronize the file version of an assembly to its assembly version. I've
discovered that the "1.0.*" pattern doesn't work for the AssemblyFileVersion
attribute.

-- Can the AssemblyFileVersion attribute be d to the AssemblyVersion
attribute ? If so, how?

-- Is there any reason why it would be a bad idea to do this?

Thanks in advance.

--
David Veeneman
Foresight Systems
Jan 15 '06 #1
2 20049
"David Veeneman" <da****@nospam.com> wrote in message
news:ea**************@TK2MSFTNGP14.phx.gbl...
I am using the "1.0.*" pattern to auto-increment the AssemblyVersion
attribute of my project's assembly. I'd like to have the assembly's
AssemblyFileVersion attribute match this value, so that I can see the
assembly version in the Windows XP Explorer. In other words, I'd like to
synchronize the file version of an assembly to its assembly version. I've
discovered that the "1.0.*" pattern doesn't work for the
AssemblyFileVersion attribute.
In your AssemblyInfo.cs file, just comment out the AssemblyFileVersion()
attribute, like so:

[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
-- Is there any reason why it would be a bad idea to do this?


No. If you want more control over versioning though, see this VS addin.

http://www.codeproject.com/dotnet/ve...olledbuild.asp

-- Alan
Jan 16 '06 #2
Thanks!
Jan 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Manlio Perillo | last post: by
1 post views Thread by Lew | last post: by
5 posts views Thread by Robert Downes | last post: by
20 posts views Thread by Vijay Kumar R. Zanvar | last post: by
5 posts views Thread by maya | last post: by
22 posts views Thread by nospam_news | last post: by
2 posts views Thread by Piotr K | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.