Reply to comment
Dynamically retrieving the executing assembly version attribute - C#
Submitted by Tim Hollobon on Tue, 09/15/2009 - 15:57
In our C# project the version attribute is defined in a CS file as:
assembly: AssemblyVersion("3.6.2.5")]
To dynamically retrieve that via code, use the command:
string s = null;
s = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
Thanks to MadHatter's post at CodeGuru.
string
Reply
Popular Articles
Last viewed:
- C++/CLI Common SEHException
- Visual C++ - Release compile - warning C4653 - Optimizations inconsistent
- Find a control in a TemplateField programmatically
- User Account Login - Limit hours
- ASP.NET Charting Control 3.5 fix for "Error executing child request for ChartImg.axd"
- Tutorial for Configuring Silverlight 4, Entity Framework and WCF RIA Services in Separate Component Assemblies (DLL’s)

Recent comments
1 day 19 hours ago
6 days 9 hours ago
6 days 10 hours ago
1 week 19 hours ago
1 week 2 days ago
2 weeks 9 hours ago
2 weeks 1 day ago
2 weeks 4 days ago
2 weeks 6 days ago
2 weeks 6 days ago