How to execute an addin on local build of a project RRS feed

  • Question

  • Hi guys, I am looking for a solution to this problem i'm facing for a long tym now. I am building an addin in Vb.net. What i need to do is I need to collect all the DLL's that the project has and then pass all these dll's to fxcop to compare with some custom dll. But i need to do this on every local build of a project. For example- if i install my addin on a remote machine , If the user clicks on local build of any project he's running, my addin should execute and it should collect all the dll's of the project and pass them on to fxcop. I have tried the Prebuild and Post Build events of vb.net but i am not sure as to how to use them by coding . The DLL's have to be passed through a command prompt command "fxcopcmd". Any help on this will be highly appreciated.
    Monday, April 25, 2011 11:50 AM


  • Hello,


    HOWTO: Performing some action before or after a build from a Visual Studio macro or add-in

    To get the output dll name of a project check one of the EnvDTE.Project.Properties, and to get the output folder of a project see:

    HOWTO: Get the output build folder from a Visual Studio add-in or macro
    (same link)


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Monday, April 25, 2011 12:59 PM