How to automatically increment application assembly information

D

Diogene Laerzio

VS2005. I've read to put in assemblyInfo.cs:

[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.*")]

but this does not work and the version is always 1.0.0.0.

Why in the graphic tool i can't put the * character?

Thanks.
 
D

Diogene Laerzio

Thanks it works! But I think there's no fast method (without writing
code) to increment only by one the version :(
Can I write a script in "Pre-Build event command line" to obtain this?

Do you know how?


Hi Diogene,

Leave this line only:
[assembly: AssemblyVersion("1.0.0.*")]

and remove the other one:
[assembly: AssemblyFileVersion("1.0.0.*")]

This should help :)

_____________
Adam Bieganskihttp://godevelop.blogspot.com



Diogene Laerzio said:
VS2005. I've read to put in assemblyInfo.cs:
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.*")]
but this does not work and the version is always 1.0.0.0.
Why in the graphic tool i can't put the * character?
Thanks.- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -
 
G

Guest

I think this is the answer:

http://biasecurities.com/blogs/jim/archive/2003/10/08/166.aspx


Cheers,
_____________
Adam Bieganski
http://godevelop.blogspot.com


Diogene Laerzio said:
Thanks it works! But I think there's no fast method (without writing
code) to increment only by one the version :(
Can I write a script in "Pre-Build event command line" to obtain this?

Do you know how?


Hi Diogene,

Leave this line only:
[assembly: AssemblyVersion("1.0.0.*")]

and remove the other one:
[assembly: AssemblyFileVersion("1.0.0.*")]

This should help :)

_____________
Adam Bieganskihttp://godevelop.blogspot.com



Diogene Laerzio said:
VS2005. I've read to put in assemblyInfo.cs:
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.*")]
but this does not work and the version is always 1.0.0.0.
Why in the graphic tool i can't put the * character?
Thanks.- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top