Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Visual Studio-自定义运行操作以使用DebugAdapterHost.launch_C#_Visual Studio_Debugging_.net Core_Remote Debugging - Fatal编程技术网

C# Visual Studio-自定义运行操作以使用DebugAdapterHost.launch

C# Visual Studio-自定义运行操作以使用DebugAdapterHost.launch,c#,visual-studio,debugging,.net-core,remote-debugging,C#,Visual Studio,Debugging,.net Core,Remote Debugging,在Visual Studio 2017中,是否可以更改绿色调试按钮和F5热键执行的操作 目前,我必须发布我的.net core控制台应用程序(使用我创建的配置文件),然后在命令窗口(视图->其他窗口->命令窗口)中执行“DebugAdapterHost.Launch/LaunchJson:somepathblahblah” 这是基于 但是,我始终希望远程调试我的应用程序,因此更改默认调试操作以某种方式执行这两个步骤将节省大量时间。即使它不能执行发布步骤,执行DebugAdapterHost.La

在Visual Studio 2017中,是否可以更改绿色调试按钮和F5热键执行的操作

目前,我必须发布我的.net core控制台应用程序(使用我创建的配置文件),然后在命令窗口(视图->其他窗口->命令窗口)中执行“DebugAdapterHost.Launch/LaunchJson:somepathblahblah”

这是基于


但是,我始终希望远程调试我的应用程序,因此更改默认调试操作以某种方式执行这两个步骤将节省大量时间。即使它不能执行发布步骤,执行DebugAdapterHost.Launch命令也会很棒

正如Alex所评论的,调用
DebugAdapterHost.launch
作为自定义运行操作是不可能的

但是它构建当前项目,然后调用
DebugAdapterHost.Launch
命令


当然是另一种选择。

似乎您必须自己创建visual studio命令。