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.AddNewTarget("publish");
but I'm really just guessing at those properties based on the command line properties I'm setting to publish the ClickOnce application.