title: Visual Studio Online build fails - Local works
body: <p>I upgraded to VS2015, and MVC was updated to 5.0.</p>
  
  <p>I am able to build successfully on my local PC, but when I checkin to Visual Studio Online, and my CI build builds, it fails:</p>
  
  <p>"The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)"</p>
  
  <p>I've used nuget manager to remove, and re-install MVC on my project - same results.</p>
  
  <p>Looking at my references in the project, all looks OK.</p>
  
  <p><a href="https://i.stack.imgur.com/1T8AS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1T8AS.png" alt="enter image description here"></a></p>
  
  <p>I also notice in the log before the error happens:</p>
  
  <pre><code>Installing 'Microsoft.AspNet.Razor 3.2.3'.
  Installing 'Microsoft.AspNet.Mvc.FixedDisplayModes 5.0.0'.
  Successfully installed 'Microsoft.AspNet.Mvc.FixedDisplayModes 5.0.0'.
  Successfully installed 'Microsoft.AspNet.Razor 3.2.3'.
  All packages listed in packages.config are already installed.
  </code></pre>
  
  <p>But it seems when it builds, it doesn't know what MVC is. How can I resolve this?</p>