locked
Path of compiled assemblies RRS feed

  • Question

  • Okay, so I'm wondering if there's a way to get the path of compiled assemblies in a solution the Add-In works on.
    I manage to get the list of files with Solution Hierarchy Traversal sample in the vs2008 SDK, but it won't access assemblies.

    I could read the active configuration, the output path and the assembly name from the csproj file with an xml reader I suppose, just wondering if there's a cleaner way to do this.

    I'm using VS2010 RC right now.

    Thank you
    Monday, March 8, 2010 9:31 PM

Answers

  • If you mean the path of the assemblies that the solution generates for a given configuration see:

    HOWTO: Get the output build folder from a Visual Studio add-in or macro
    http://www.mztools.com/resources_vsnet_addins.aspx

    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    • Proposed as answer by Carlos J. Quintero Tuesday, March 9, 2010 12:15 PM
    • Marked as answer by Haathen Tuesday, March 9, 2010 7:56 PM
    Tuesday, March 9, 2010 12:15 PM

All replies

  • If you mean the path of the assemblies that the solution generates for a given configuration see:

    HOWTO: Get the output build folder from a Visual Studio add-in or macro
    http://www.mztools.com/resources_vsnet_addins.aspx

    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    • Proposed as answer by Carlos J. Quintero Tuesday, March 9, 2010 12:15 PM
    • Marked as answer by Haathen Tuesday, March 9, 2010 7:56 PM
    Tuesday, March 9, 2010 12:15 PM
  • Ahh, perfect, thank you very much!
    Tuesday, March 9, 2010 7:56 PM