Problem getting the AssemblyVersion into a web page using Razor /MVC3
问题 I'm using the following code in a footer in my _Layout.cshtml file to put the AssemblyInfo version data into the footer of every page in my MVC3 site. However: @System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() Just prints in the footer: Revision 0.0.0.0 When I modified the view to display all of the assembly info for the "Executing Assembly" using the following @System.Reflection.Assembly.GetExecutingAssembly().GetName().ToString() Which prints the following: