C# Dotnet运行不';不能在VS代码中工作

C# Dotnet运行不';不能在VS代码中工作,c#,asp.net-core,visual-studio-code,C#,Asp.net Core,Visual Studio Code,我在vscode中运行net.core 2.0应用程序时遇到问题。我安装了angular cli项目,然后使用dotnet new webapi安装net.core 2.0项目 结构如下: 当我使用命令dotnet run时,我可以看到kestrel正在运行: PS D:\code游乐场\我的梦想应用程序>使用启动设置运行dotnet 来自D:\CodePlayerly\my dream app\Properties\launchSettings.json。。。 托管环境:开发内容根路径: D

我在vscode中运行net.core 2.0应用程序时遇到问题。我安装了angular cli项目,然后使用dotnet new webapi安装net.core 2.0项目

结构如下:

当我使用命令dotnet run时,我可以看到kestrel正在运行:

PS D:\code游乐场\我的梦想应用程序>使用启动设置运行dotnet 来自D:\CodePlayerly\my dream app\Properties\launchSettings.json。。。 托管环境:开发内容根路径: D:\code游乐场\我的梦想应用程序正在收听:

但当我在浏览器中打开一个页面时,我会看到:


它在visual studio 2017、iis或自托管中工作。

您需要像指定控制器一样指定控制器,或者必须为空路由配置哪些操作

可能重复: