Showing the Version for an MVC App

Technorati Tags: ,,

The primary MVC (Model-View-Controller) application that I’m working on is called KarlZMvc resulting in a dll called KarlZMvc.dll. To get the version output on my Site.Master page I need to include the following line:

Code Snippet
  1. <{f073afa9b3cad59b43edffc8236236232bb532d50165f68f2787a3c583ed137f}= typeof(KarlZMvc.MvcApplication).Assembly.GetName().Version.ToString() {f073afa9b3cad59b43edffc8236236232bb532d50165f68f2787a3c583ed137f}>

I tried all sorts of combinations with the GetExecutingAssembly, or calling, etc. But none seemed to work. This is with ASP.NET MVC 2 using Visual Studio 2010 Beta 2.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.