ASP.Net Kestrel 未从 Visual Studio 加载控制台,我该如何调试该问题?

ASP.Net Kestrel not loading up console from Visual Studio, how can I debug the issue?

我正在尝试调试为什么我的 ASP.Net RC-1 项目不在 Kestrel 上 运行。当我点击 'web' 作为启动选项时,输出 window 看起来很干净——没有例外。但是我被告知会弹出的控制台 - 不会。我该如何调试导致此问题的原因?

我创建了另一个模板项目和 运行 只是为了确保 运行 来自 Kestrel 的正常并且确实如此。

对于我的项目,这些是输出的最后几行:

'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\David\.dnx\packages\Microsoft.AspNet.Authentication.Cookies.0.0-rc1-final\lib\net451\Microsoft.AspNet.Authentication.Cookies.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.Extensions.DependencyInjection.DataProtectionServices: Information: User profile is available. Using 'C:\Users\David\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0xf80 has exited with code 0 (0x0).
The thread 0x7ec has exited with code 0 (0x0).
The thread 0x3f38 has exited with code 0 (0x0).
The thread 0x10d4 has exited with code 0 (0x0).

编辑:

我应该补充一点,它在 IIS 上运行得很好。

非常感谢!

How can I debug what is causing this issue?

我们可以解决问题;不幸的是,我们无法调试它。这是第一个故障排除步骤。

打开命令提示符。然后 cd 到包含 project.json 文件的目录。然后运行下面的命令。这将为您提供更多信息。

C:\MyProject>  dnu restore
C:\MyProject>  dnu build
C:\MyProject>  dnx web

以上恢复 NuGet 包,构建项目,运行s web 命令。如果它在命令行中运行,那么 Visual Studio.

中就会出现问题