简体   繁体   English

Linux MONO是否支持ASP.NET Core 2.2 MVC?

[英]Does Linux MONO support ASP.NET Core 2.2 MVC?

I'm not finding any clear answer on this. 我没有找到任何明确的答案。 On the Compatibility page, they say: 在“ 兼容性”页面上,他们说:

Everything in .NET 4.7 except WPF, WWF, and with limited WCF and limited ASP.NET async stack .NET 4.7中的所有内容(WPF,WWF除外)以及受限制的WCF和受限制的ASP.NET异步堆栈

What about .NET Core 2.2? .NET Core 2.2呢? Is it possible to run it on MONO or not? 是否可以在MONO上运行它?

I'm glad .NET Core framework is becoming more mature; 我很高兴.NET Core框架变得更加成熟。 but unfortunately it doesn't support legacy WebForms, and MONO's support for Core is unclear, so they don't mix well. 但不幸的是,它不支持旧版WebForms,而且MONO对Core的支持尚不清楚,因此它们的搭配不佳。

Mono 5.4 implements netstandard 2.0 . Mono 5.4实现了netstandard 2.0 Since ASP.NET Core 2.x runs on netstandard 2.0, Mono 5.4 also does support ASP.NET Core 2.x. 由于ASP.NET Core 2.x在netstandard 2.0上运行,因此Mono 5.4也确实支持ASP.NET Core2.x。

Note that starting with ASP.NET Core 3.0, the framework will only run on .NET Core. 请注意,从ASP.NET Core 3.0开始,该框架将仅在.NET Core上运行。 That means that if you want to stick to Mono, you will have to stick with ASP.NET Core 2.x. 这意味着,如果您要坚持使用Mono,则必须坚持使用ASP.NET Core2.x。

Since ASP.NET Core 2.2 is not a long time support (LTS) release, which means that it will run out of support not too long after 3.0 releases, I would recommend you to stay on ASP.NET Core 2.1 if you want to run it on Mono. 由于ASP.NET Core 2.2不是长期支持(LTS)版本,这意味着它在3.0版本之后不久就会用完支持,因此,如果要运行ASP.NET Core 2.1,建议您继续使用。它在单声道上。

That being said, there isn't really a reason for you to run on Mono there. 话虽这么说,实际上没有理由让您在该处运行Mono。 You can just use .NET Core properly. 您只可以正确使用.NET Core。 If you need Mono around for other WebForms projects, then you can just do that for those projects. 如果您在其他WebForms项目中需要Mono,则可以为那些项目做。 But for ASP.NET Core, you can just choose the .NET Core runtime. 但是对于ASP.NET Core,您只能选择.NET Core运行时。 Because in the end, ASP.NET Core and WebForms will not mix, even if you run both on Mono. 因为最后,即使您同时在Mono上运行,ASP.NET Core和WebForms也不会混合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM