Monday, June 16, 2008

Add custom library or form in Visual Studio Macros

  1. Create custom class library in language that you prefer.
  2. In Build events Post build events add: copy "$(TargetPath)" "$(DevEnvDir)PublicAssemblies\"
  3. In macro from where you whant to use your custom library add reference to your class library
  4. You are now free to use your custom library in your macro


Maki Panic said...

Macro to attach to IIS process ;)

Imports System
Imports EnvDTE

Imports EnvDTE80

Imports System.Diagnostics

Public Module IISDebug

Public Sub AttachToIIS()


End Sub

Private Sub AttachToProcess(ByVal name As String)

Dim Processes As EnvDTE.Processes = DTE.Debugger.LocalProcesses

Dim Process As EnvDTE.Process

For Each Process In Processes

If Process.Name.Substring(Process.Name.LastIndexOf("\") + 1) = name Then


End If


End Sub

End Module

Me said...