buildengine

Import added does not appear in the Imports collection (Msbuild Project)

The title pretty much says it all... this code does not write anything to the console cause the collection is empty. Project p = new Project(engine); p.AddNewImport(@"C:\mytarget.targets",""); foreach(Import imp in p.Imports) Console.WriteLine(p.ProjectPath); But!, if I debug the code the collections get the imports, I guess it h...

How do I use Microsoft.Build.BuildEngine to Build a Silverlight project?

I am using the Microsoft.Build.BuildEngine to build a number of projects. Projects that do not use Silverlight are building correctly while projects that do use Silverlight are not building. All of these projects (Silverlight and non-Silverlight) all build fine through Visual Studio 2008. I get the error message: error CS0234: The...