Clean, Build, Build WSP and Deploy Macro!

Mar 1, 2013 at 4:53 PM
Edited Mar 1, 2013 at 4:55 PM
I couldn't find this anywhere, it is useful to me and thought someone else might like it. Not that you couldn't create it yourself, anyway. VS 2010 SP2007

Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics

Public Module RecordingModule
Sub WSP()
    DTE.Solution.SolutionBuild.Clean(True)
    DTE.Solution.SolutionBuild.Build(True)
    DTE.ExecuteCommand("WSPTools.VisualStudio.VSAddIn.Connect.BUILDPROJECTWSP")
    Threading.Thread.Sleep(5000)
    DTE.ExecuteCommand("WSPTools.VisualStudio.VSAddIn.Connect.DEPLOYWSP")
End Sub
End Module