3F / vsSolutionBuildEvent

🎛 Event-Catcher with variety of advanced Actions to service projects, libraries, build processes, runtime environment of the Visual Studio, MSBuild Tools, and …
Other
79 stars 22 forks source link

BAT files no longer dumps to VS Output window "vsSolutionBuildEvent" #34

Closed mef526 closed 8 years ago

mef526 commented 8 years ago

The previous version dumped the output of a batch file into the output window "vsSolutionBuildEvent". Now the bat file runs in a CMD window and the output is lost. Attached is the .vssbe file with the command used Copy.vssbe.txt

3F commented 8 years ago

Thanks for report,

The File mode is very old mode, and probably it broken after this changes: cde59ac904 :(

I will check it later

Temporarily you can use, for example:

string #[File sout(string filename [, string args [, integer timeout]])]
+
#[OWP item("MyOutput").writeLine(true): mixed data]

e.g.:


#[try
{ 
    #[OWP item("MyOutput").writeLine(true): #[File sout("fname.exe", "args")]]
}
catch(err, msg)
{

}]

http://vssbe.r-eg.net/doc/Scripts/SBE-Scripts/Components/

for your case it can be simply:

#[OWP item("vsSolutionBuildEvent").writeLine(false):#[File sout("postBuild.bat")]]
3F commented 8 years ago

Please check the fixes from 85ad3b7 (debug versions here)