Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // In AssemblyInfo.cs
- [assembly: AssemblyVersion("1.0.*")]
- [assembly: AssemblyFileVersion("1.0.*")]
- // Get the assembly version of the HomeController
- // Display wherever you want in the application
- var mvcApplicationVersion = typeof(HomeController).Assembly.GetName().Version.ToString(3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement