title: ASP.NET MVC 3.0 Build Views as 64 bit
body: <p>I need to build an MVC 3.0 site and target x64 specifically.  I'm having an issue trying to build my MVC 3.0 site with the Platform Target set to x64 and MvcBuildViews set to True.  Everything builds fine until it tries to compile the views. If I set the Platform Target to AnyCPU everything will compile, but when set to x64 I get this error:</p>
  
  <p>Could not load file or assembly 'Mvc64Bit' or one of its dependencies. An attempt was made to load a program with an incorrect format.</p>
  
  <p>This can easily be recreated by creating a blank MVC 3.0 project, unload the project, edit the project file to set the MvcBuildViews item to "true", reload the project, change the Platform Target in the Project's Build Properties to x64, and then build.</p>
  
  <p>I haven't been able to find anything about the above error online, just that it deals with mismatched DLLs (one x32, one x64) but this doesn't make sense unless the view build engine is 32 bit or something.</p>
  
  <p>Any hints to point me in the right direction will be GREATLY appreciated. Thanks for reading!!</p>