Macros – Visual Studio 2005

Posted on July 5, 2006. Filed under: Uncategorized |

Tried of using mouse to set solution configuration everytime I make a build. I tried looking for already existing commands but found none. So I wrote my own macros for it:

Sub SetReleaseConfig()
Dim SM As SolutionConfiguration = DTE.Solution.SolutionBuild.SolutionConfigurations.Item(“Release”)
SM.Activate()
End Sub

Sub SetDebugConfig()
Dim SM As SolutionConfiguration = DTE.Solution.SolutionBuild.SolutionConfigurations.Item(“Debug”)
SM.Activate()
End Sub

Now you can assign any shortcut key you want to these macros.

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: