我想修补 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/