c# - Build/Rebuild Project VS 2008 using DTE -
how can build , rebuild project csproj using dte.executecommand ?
any reference of commands of dte ?
for solution, use this:
logica.buildtracking.iniciarbuildtrack(); proyecto.dte.executecommand("build.rebuildsolution", ""); while (!logica.buildtracking.buildfinalizado) { application.doevents(); //system.threading.thread.sleep(1000); }
i try use this:
// todo !!! proyecto.dte.executecommand("build.buildonlyproject", "");
but error: "command \"build.buildonlyproject\" not available."
this should started
//gets build obj var sb = proyecto.dte.solution.solutionbuild solutionbuild; //sets object build; still figuring out can done one... sb.solutionconfigurations.item(1).activate(); //optional arg if want wait build finish sb.build(true);
i'm still playing method using executecommand can use default param , write this: proyecto.dte.executecommand("somecommand");
because second parameter set default empty string.
more info take @ this
http://msdn.microsoft.com/en-us/library/aa301352%28v=vs.71%29.aspx
Comments
Post a Comment