title: Could not load Microsoft.Build.dll in Windows Phone 8 SDK and VS 2012
body: <p>I have installed the Windows Phone SDK 8.0 and Visual Studio 2012 Premium with Update 1. When I create now a new phone project I get three errors:</p>
  
  <blockquote>
    <p>Error 1   The "CompileXaml" task could not be instantiated from
    "C:\Program Files
    (x86)\MSBuild\Microsoft\WindowsPhone\v8.0\Microsoft.Silverlight.WindowsPhone.Build.Tasks.dll".
    Could not load file or assembly 'Microsoft.Build.dll' or one of its
    dependencies. An attempt was made to load a program with an incorrect
    format.</p>
    
    <p>Error 2   The "CompileXaml" task has been declared or used incorrectly,
    or failed during construction. Check the spelling of the task name and
    the assembly name.</p>
    
    <p>Error 3   The name "LocalizedStrings" does not exist in the namespace
    "clr-namespace:PhoneApp24".   C:\PhoneDevelopment\PhoneApp24\PhoneApp24\App.xaml</p>
  </blockquote>
  
  <p>While googling I found some guys out there who have similar errors while using Windows 8 in a virtual machine. But in my case I have installed everything on my laptop. I have also already uninstalled VS2012 and the SDK. But after the reinstallation I still get the same exceptions.</p>
  
  <p>Can someone please give me some hints?</p>