Created
March 4, 2026 17:03
-
-
Save Zetrith/70ae7a8390f085b482d7a4cee38bdde7 to your computer and use it in GitHub Desktop.
MSBuild task for launching a debugger within a build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <UsingTask | |
| TaskName="LaunchDebugger" | |
| TaskFactory="RoslynCodeTaskFactory" | |
| AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" > | |
| <Task> | |
| <Using Namespace="System.Diagnostics" /> | |
| <Code Type="Fragment" Language="cs"> | |
| <![CDATA[ | |
| Debugger.Launch(); | |
| ]]> | |
| </Code> | |
| </Task> | |
| </UsingTask> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment