msbuild-buildengine

Microsoft.Build.BuildEngine.Engine throws error when building WPF application

I am using Microsoft.Build.BuildEngine.Engine to build a WPF application. This has been working successfully for class libraries and web applications, but now trying to use it to build a WPF application I am getting the following error: Target MarkupCompilePass1: c:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(...

How do I publish a ClickOnce application using Microsoft.Build.BuildEngine

I have a WPF, ClickOnce application that I am trying to build using the Microsoft.Build.BuildEngine. I believe my question actually boils down to "how do I do the command line /target:publish using Microsoft.Build.BuildEngine"? I've tried the following projectToBuild.SetProperty("PublishUrl", myPublishUrl); projectToBuild.Targets.Ad...

How do I control where the output of a ClickOnce application is built (using Microsoft.Build.BuildEngine) to?

I have a ClickOnce WPF application that I am using Microsoft.Build.BuildEngine to build. Everything appears to be working correctly, but when doing a targeted build to publish the application it is putting the published output to .\bin\Release\app.publish This is despite setting the properties "PublishURL", "OutDir", "WebProjectOutputD...

Getting Build URi or Build number of the last build from MSBuild

Hi all, I am trying to create a custom task for MSBuild so that it will send an email to the users that sais that a new version is up on the test server. I go the email part done, what i would like to do is add the work items that are included in this build. I tried the MSBuild extention (used to send the email) but the feature to get...

Can you use multiple working folders with TFS?

In projects in which the workspace has only one working folder, my build scripts work great. Now that I am working with a new project that required 2 working folders, all of the checkout and checkin commands of my previous script fail, with no files found. Obviously, I'm not understanding a critical part of the implementation of the wor...

Microsoft.Build.Engine Error (default targets): Target GetFrameworkPaths: Could not locate the .NET Framework SDK.

I am writing a webservice, that when called should build a C# project. I'm using the framework 2 reference, Microsoft.Buld.Engine and Microsoft.Build.Framework. If you look under the '<Import>' section .csproj file, by default it has: <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> which I then changed to: <Import P...

Passing MsBuild Command Line Arguments with BuildEngine

I have the following code to build a project from another C# app: var buildEngine = new Engine(); buildEngine.RegisterLogger(new ConsoleLogger()); var success = buildEngine.BuildProjectFile(pathToCsProjFile); if(!success) { Log.LogIt("On Noes! We Broke!"); } else { Log.LogIt("It Worked!!!!!!"); } Currently it builds the defa...