Public Sub BuildRelease()
' Refrence the Solution Build object
Dim oSB = Connect.oDTE2.Solution.SolutionBuild
' Get the Active Configuration
Dim oConfig = oSB.ActiveConfiguration
' Set each Project Configuration to Release & set platform to 'Any'
For Each context As SolutionContext In oConfig.SolutionContexts
context.ConfigurationName = "Release"
' Need the change the Platform to Any here !!!!!
' Build the Solution
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)