diff --git a/src/Microsoft.DotNet.Build.Tasks/LaunchDebugger.cs b/src/Microsoft.DotNet.Build.Tasks/LaunchDebugger.cs
new file mode 100644
index 0000000000..8075a0b794
--- /dev/null
+++ b/src/Microsoft.DotNet.Build.Tasks/LaunchDebugger.cs
@@ -0,0 +1,18 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using Microsoft.Build.Utilities;
+using System.Diagnostics;
+
+namespace Microsoft.DotNet.Build.Tasks
+{
+ public class LaunchDebugger : Task
+ {
+ public override bool Execute()
+ {
+ Debugger.Launch();
+ return true;
+ }
+ }
+}
diff --git a/src/Microsoft.DotNet.Build.Tasks/Microsoft.DotNet.Build.Tasks.csproj b/src/Microsoft.DotNet.Build.Tasks/Microsoft.DotNet.Build.Tasks.csproj
index dfb102502a..61bdf4c462 100644
--- a/src/Microsoft.DotNet.Build.Tasks/Microsoft.DotNet.Build.Tasks.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks/Microsoft.DotNet.Build.Tasks.csproj
@@ -48,6 +48,7 @@
+