Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.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
Asp.net core 启动dotnet失败(“dotnet”不是符号链接的文件)_Asp.net Core_Visual Studio Code_Process_Ubuntu 18.04_Omnisharp - Fatal编程技术网

Asp.net core 启动dotnet失败(“dotnet”不是符号链接的文件)

Asp.net core 启动dotnet失败(“dotnet”不是符号链接的文件),asp.net-core,visual-studio-code,process,ubuntu-18.04,omnisharp,Asp.net Core,Visual Studio Code,Process,Ubuntu 18.04,Omnisharp,调试ASP.NET core的默认vscode配置包含以下内容: 配置:[ { 名称:.NET核心发布网站, 类型:coreclr, 请求:发射, 启动前任务:构建, ... 我的预启动任务失败,错误如下: The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink. 我以前遇到过这个问题,不是在预启动任务上,而是在主程序执行上。我可以

调试ASP.NET core的默认vscode配置包含以下内容:

配置:[ { 名称:.NET核心发布网站, 类型:coreclr, 请求:发射, 启动前任务:构建, ... 我的预启动任务失败,错误如下:

The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink.
我以前遇到过这个问题,不是在预启动任务上,而是在主程序执行上。我可以通过在~/.vscode/extensions/ms dotnettools.csharp-1.**/dist/extensions.js中替换所有的dotnet->/usr/bin/dotnet来解决这个问题。但是,这个解决方法不适用于预启动任务。而且必须为ev执行此操作该扩展插件的所有更新

鉴于我是一个linux noob,它可能与omnisharp/vscode无关,但我在Ubuntu 18.04中犯了一些错误

有人知道错误的含义吗?如何修复它?甚至如何调试这个问题

我已经重新安装了vscode、.net5,并且我的全局$PATH env确实包含/home//.dotnet/tools:/usr/bin/dotnet。除此之外,我不知道该做什么。

在tasks.json文件中从 tasks.json文件中的type:process改为type:shell 类型:进程到类型:shell