Hello,
I am developing visual studio "build on save" extension and stuck a bit on launching build process from extension.
Currently it's done via Process class like this:
Process proc = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "{msbuild}",
Arguments = "{path_to_project_file}",
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true
}
};
proc.Start();but it doesn't smell good...
Is there any API for triggering build action from within extension?