Determine ASP.NET MVC project version
// 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);
Comments