I am using Microsoft.Build.BuildEngine.Engine to create a WPF application. This works successfully for class libraries and web applications, but now, trying to use it to create a WPF application, I get the following error:
Target MarkupCompilePass1: C: \ Windows \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.WinFX.targets (294.9): MC1000 error: Unknown build error, 'API constraint: build' file: /// C: \ Program Files (X86) \ Assembly Link \ Microsoft \ Framework \ v3.0 \ PresentationCore.dll "is already loaded from another location. It cannot be downloaded from a new location in the same AppDomain. Completed building target" MarkupCompilePass1 "in the project" TestWindowsApplication.csproj "- FAILED.
This application works great when created using VisualStudio 2008 (i.e. building from a menu), but with Microsoft.Build.BuildEngine.Engine, it throws this build error. Does anyone know what is going on here?
source
share