How to target Mono framework from VS2015?(如何从 VS2015 定位 Mono 框架?)
问题描述
我想在安装了 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 框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从 VS2015 定位 Mono 框架?
基础教程推荐
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
