Abillity to indicate success/error of post build step ,OnBuildProjConfigDone

A

audipen

Hi,

I trap the 'OnBuildProjConfigDone' and perform some custom enhancement
to the assembly. I check the 'bool Success' parameter before I perform
my step. I go ahead only if 'Success == true"

My question is - Is there any way in which I can indicate success or
failure of my post build step.. 'Success' is an in-parameter, so I cant
set it to false. Also the return type of the handler is void.

I want something other than reporting to the output window because I
need to automate certain tests.

If devenv.exe is spawned with a solution file and 'runexit' as
arguments...it rebuilds the projects in the solution and runs the
application. If there is a compilation error the exit code of the
process is 1, indicating failure. I want to return something similar to
indicate failure of my custom post build step.

Any help is appreciated.

Thanks,
Ady.
 
C

Carlos J. Quintero [.NET MVP]

You could trap Command events for the several Build.XXX commands instead,
but only the BeforeExecute event has a parameter to cancel, the AfterExecute
event does not.

See:
http://support.microsoft.com/default.aspx?scid=kb;en-us;555090

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top