Search code examples
visual-studioeventsvisual-studio-2008wmi

build notification in visual Studio 2008\2010 - WMI etc


I want to be notified when a build has been completed\failed in visual studio and I DO NOT want to use pre\post build steps, I want an external process or VS plugin that will count the number of builds.

So is there anyway to achieve this using something like WMI or other such technology?

I'm not interested in third party libaries, I want to write a plugin for visual studio.


Solution

  • There isn't. You can either use the pre/post build steps, or make an add-in. For the latter look for EnvDTE.BuildEvents. Let me know if you need a sample.

    Any particular reasons you don't want to use the pre/post build steps, you can pretty much do anything with them, i.e. send mail, increment the file version information in AssemblyInfo etc.