I have an ASP.NET MVC 4 application. Currently, I am setting the version of the application in the project properties under the \"Application\" tab. From here, I click the \
Your assembly version may be set using the AssemblyFileVersionAttribute, which must be accessed specifically.
AssemblyFileVersionAttribute attr = typeof(MyController).Assembly.GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true).OfType().FirstOrDefault();
if (attr != null)
{
return attr.Version;
}
The MvcDiagnostics Nuget package makes this simple.