How to

get build number

Published: 9. October 2011 | Updated: 9. October 2011
License: Microsoft Public License (MS-PL)
Categories: Framework » Reflection
Tags: C# Console Reflection Winforms WPF
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Reflection;

Code

Assembly assembly = Assembly.GetExecutingAssembly();
int buildNumber = assembly.GetName().Version.Build;
Send us feedback about this snippet »



Related Snippets: