vsx - How do I get the output directories from the last build? -
let's i've got solution 1 or more projects, , i've kicked off build using following method:
_dte.solution.solutionbuild.build(true); // envdte.dte how can output paths each project built? example...
c:\mysolution\project1\bin\x86\release\
c:\mysolution\project2\bin\debug
please don't tell me way...
// dte wrapper; dte.dte envdte.dte var ctxs = dte.dte.solution.solutionbuild.activeconfiguration .solutioncontexts.oftype<solutioncontext>() .where(x => x.shouldbuild == true); var temp = new list<string>(); // output filenames // oh shi foreach (var ctx in ctxs) { // sorry, you'll have oftype<project>() on projects (dte wrapper) // find project build context based on name. vomit. var project = dte.projects.first(x => x.fullname.endswith(ctx.projectname)); // combine project's path (fullname == path???) // outputpath of active configuration of project var dir = system.io.path.combine( project.fullname, project.configurationmanager.activeconfiguration .properties.item("outputpath").value.tostring()); // , combine outputfilename assembly // or skip , grab files in output directory var filename = system.io.path.combine( dir, project.configurationmanager.activeconfiguration .properties.item("outputfilename").value.tostring()); temp.add(filename); } this makes me want retch.
Comments
Post a Comment