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 框架?
基础教程推荐
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 将数据集转换为列表 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- 如果条件可以为空 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
