views:

57

answers:

1

I'd like to be able to toggle easily between two values for "maximum number of parallel project builds" in Visual Studio 2008 (in Tools->Options->Projects and Solutions->Build and Run). (When I'm planning on doing concurrent work I'd like to reduce it from 4 to 3.) I'm not too well versed in writing macros for the IDE. When I try recording a macro, and perform all the actions (open the dialog, change the setting, click OK), the only thing that gets recorded is this:

DTE.ExecuteCommand ("Tools.Options")

Is my goal unattainable?

+2  A: 

It appears to be impossible, according to the MSDN page for Determining Names of Property Items in Tools Options Pages

If it was possible, it would have been something like this:

Dim p = DTE.Properties("ProjectsAndSolutions","BuildAndRun")
p.Item("MaxNumParallelBuilds")
Mark Cidade
Shucks. Thanks for the reference though; that's pretty useful nonetheless.
Owen