- Create custom class library in language that you prefer.
- In Build events Post build events add: copy "$(TargetPath)" "$(DevEnvDir)PublicAssemblies\"
- In macro from where you whant to use your custom library add reference to your class library
- You are now free to use your custom library in your macro
1 comment:
Macro to attach to IIS process ;)
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
Public Module IISDebug
Public Sub AttachToIIS()
AttachToProcess("w3wp.exe")
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
Process.Attach()
End If
Next
End Sub
End Module
Post a Comment