title: Cannot build workflow project with msbuild (Sharepoint 2010)
body: <p>I use teamcity to build Sharepoint projects using 64-bit MSBuild. All projects work fine instead of my workflow project. When using Framework 4.0 I get the error message</p>
  
  <blockquote>
    <p>c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Workflow.Targets(121,5):
    error MSB4018: The "CompileWorkflowTask" task failed unexpectedly.
    [V:\Workflows\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow.csproj]
    c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Workflow.Targets(121,5):
    error MSB4018: System.IO.DirectoryNotFoundException: Could not find a
    part of the path
    'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\vjwduioy.tmp'.
    [V:\Workflows\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow.csproj]</p>
  </blockquote>
  
  <p>I remembered that microsoft got rid of the old Workflow mechanism so I expected that it possibly only works with the older 3.5 framework and built the project with that but got another error: </p>
  
  <blockquote>
    <p>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(37,45): error MSB4019: The imported project "C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.</p>
  </blockquote>
  
  <p>In Visual studio 2010 building works just fine. </p>