microsoft.build

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...

Programmatically modify Assembly Binding

I have an issue working with Microsoft.Build.BuildEngine which supposed to get fixed modifing my .exe.config file to add the following. <?xml version ="1.0"?> <configuration> <runtime> <assemblyBinding xmlns="urnchemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Micr...