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

Author:

Carlos J. Quintero (Microsoft MVP)

Applies to:

Microsoft Visual Studio .NET 2002

Date:

July 2009

Microsoft Visual Studio .NET 2003

Updated:

March 2013

Microsoft Visual Studio 2005

Microsoft Visual Studio 2008

Microsoft Visual Studio 2010

Microsoft Visual Studio 2012

Introduction

A Visual Studio project can have several project configurations, each one with a
different output build folder that is set in the project properties window,
Compile/Build section, Build output path. Furthermore, the output build folder
can be absolute or relative to the project folder.

More Information

The following macro gets the absolute output build folder for the active configuration of
each project of a solution.