问题描述
我想在安装了 mono 的 Linux 上部署 ASP.NET Web 应用程序.
I want to deploy ASP.NET web app on Linux with mono installed.
据我所知,Mono 是一个类似于 .DNX 4.5.1 或 .DNX Core 5.0 的定位平台.所以我需要以某种方式将它添加到我的项目中的目标平台,以针对它编译和调试项目.
From what I know Mono is a targeting platform similar to .DNX 4.5.1 or .DNX Core 5.0. So I need somehow add it to targeting platforms in my project to compile and debug the project against it.
令人惊讶的是,我没有找到任何说明.我正在创建一个新的 ASP.NET 5/vNext 项目,我看到的只是 4.5.1 和 Core 5.0 编译目标.如何将 Mono 添加到该列表中?
Surprisingly, I didn't managed to find any instructions. I'm creating a new ASP.NET 5/vNext project, and all I see is 4.5.1 and Core 5.0 compile targets. How to add Mono to that list?
推荐答案
曾经有一些Mono产品/Mono for VS 将Mono集成到VS中,但是现在没有了.
There was some Mono product/Mono for VS that integrates Mono into VS, but now there is none.
在这种情况下,您应该以 .NET Core 5 为目标,因为它将成为最终解决方案.
You should target .NET Core 5 in this case, as it is going to be the ultimate solution.
Mono 仍然为 ASP.NET 4.* 项目提供一些支持,但很难断言兼容性,因为您需要部署到 Linux 上的 Mono 进行验证.即使在这些情况下,您的项目也应该像过去一样以完整的 .NET Framework 为目标.没有可定位的 Mono 特定配置文件.
Mono does still provide some support for ASP.NET 4.* projects, but it would be difficult to assert compatibility as you need to deploy to Mono on Linux to verify. Even in those cases your project should target full .NET Framework just like what you do in the past. There is no Mono specific profile to target.
这篇关于如何从 VS2015 定位 Mono 框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!