From fef5345e3f2ec1ba47508b300d6cfff788363abb Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Tue, 19 Dec 2017 17:28:04 -0600 Subject: [PATCH] Add a LaunchDebugger task --- .../LaunchDebugger.cs | 18 ++++++++++++++++++ .../Microsoft.DotNet.Build.Tasks.csproj | 1 + 2 files changed, 19 insertions(+) create mode 100644 src/Microsoft.DotNet.Build.Tasks/LaunchDebugger.cs 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 @@ +