title: AssemblyInfo versioning ignored in ASP.NET MVC Web App?
body: <p>Strange one here.  My MVC Web Application's version number is not printing correctly to my view according to what is set in <code>AssemblyInfo.cs</code>.  The definition I have set in set <code>AssemblyInfo.cs</code> is '<code>1.0.232.0</code>'.</p>
  
  <p>I have tried multiple methods in order to print it:</p>
  
  <pre><code>&lt;%= System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()%&gt;
  </code></pre>
  
  <p>(results 0.0.0.0)</p>
  
  <pre><code>&lt;%= System.Reflection.Assembly.GetCallingAssembly().GetName().Version.ToString()%&gt;
  </code></pre>
  
  <p>(results in 2.0.0.0, which is set nowhere in my project.)</p>
  
  <pre><code>&lt;%= typeof(HomeController).GetType().Assembly.GetName().Version.ToString()%&gt;
  </code></pre>
  
  <p>(results in 2.0.0.0)</p>
  
  <p>This leads me to believe that it simply must not be picking up my AssemblyInfo.cs file?  This is also the case if I attempt to use the "Publish" button to publish to IIS on our development server.</p>
  
  <p>Any ideas? Perhaps I'm using the wrong statement to fetch the version number? :\<br/></p>
  
  <p>Thanks guys.</p>