C# Library Version

May 24, 2011

tags: ,
no comments

Colleting this from different sources.


Looking for a library version similar to __DATE__ __TIME__ you need to use:

System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()

For this to change every build you need to go to project properties, ‘Application’ tab, open ‘Assembly Information’, and set the last value in ‘Assembly Version’ to * so instead of Assembly Version of 1.0.0.0 it should be 1.0.0.* ; This will cause an increment for every build (to verify modify code or rebuild).

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*