PDA

View Full Version : Determining Project Outputs From Solution File


jhaas
12-01-2010, 02:46 PM
Is there an elegant (straightfoward) method in VBP, given a Visual Studio Solution (.sln) file, to determine what project outputs will be build?

The goal here is to be able to do a Perforce "Mark for Edit" on only the necessary binary output files prior to building the solution.

kinook
12-01-2010, 03:34 PM
There currently isn't a way to retrieve a solution's target executable filenames as parsed by the Make VS* actions, but we'll consider exposing that information in the future. For now, you would need to manually parse the sln+constituent project files for that information.

As far as determining which targets will actually be built, there isn't really any way to tell beforehand. devenv/msbuild determine that when building.