mono - 运行在linux/mac上的ASP.NET 5是基于mono的吗?

标签 mono visual-studio-code .net-core

我想修补 Visual Studio 代码和 C#。 我喜欢测试调试支持,在阅读文档时,我 read the following:

On Linux or OS X the Mono debugging support of VS Code requires Mono version 3.12 or later. If you intend to build ASP.NET 5 applications with Visual Studio Code, we recommend you first follow the steps Installing ASP.NET 5 and DNX in ASP.NET 5 Applications which will install a version of Mono that supports debugging.

现在我对 .net core 和 mono 有点困惑。 据我了解,.net core 在 win/mac/linux 上是相同的基础,但与 mono 是不同的代码库。

但是由于我需要在 Linux 下使用 Mono 进行调试,那么当 asp.net 5 在 Linux/Mac 上运行时,它是在 Mono 上运行还是在 .net core 上运行?

第二个问题:为什么.net core在windows下不支持调试?

最佳答案

.NET Core 不基于 Mono。

在 Mac 和 Linux 上,ASP.NET 5 应用程序可以在 Mono 上运行,也可以在 .NET Core 上运行。在 Windows 上,您可以使用 .NET Framework 或 .NET Core 运行 ASP.NET 5 应用程序。

如果您使用 Visual Studio,则 Windows 下有针对 .NET Core 的调试支持。想必在某个时候 VSCode 也将支持调试 .NET Core。

还有currently debugging ASP.NET 5 in VSCode不支持。您可以使用 Mono 通过 VSCode 调试 C# 应用程序,但不能调试 ASP.NET 5 应用程序。

关于mono - 运行在linux/mac上的ASP.NET 5是基于mono的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34292178/

相关文章:

java - VS Code 标志 System.out.print

python - 在 VSCode 中设置 Python 远程调试

asp.net-core - 填充 IConfiguration 以进行单元测试

c# - 如何在 Mono/Windows 上使用 gecko-sharp 嵌入 Gecko?

c# - MacOS OmniSharp 在 vscode 中超时错误

c++ - 如何在visual studio 2022 for c/c++中指定多个调试命令?

c# - 如何在 C# 中直接将文件流式传输到 S3 而无需先在本地保存

c# - 发送带有授权 header 和 token 的发布请求返回未授权

encryption - 使用 Xamarin 保护跨平台存储选项

c# - Raspberry Pi 和单声道帧缓冲区输入