如何定位从VS2015单声道框架? [英] How to target Mono framework from VS2015?

查看:122
本文介绍了如何定位从VS2015单声道框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想与单安装在Linux上部署ASP.NET Web应用程序。

I want to deploy ASP.NET web app on Linux with mono installed.

从我知道什么单类似于靶向平台.DNX 4.5.1或.DNX核心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和5.0内核编译目标。如何单声道添加到列表?

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?

推荐答案

有一些单品/单声道为VS的单声道集成到VS,但现在是没有的。

There was some Mono product/Mono for VS that integrates Mono into VS, but now there is none.

您应该针对.NET核心5在这种情况下,因为这将是最终的解决方案。

You should target .NET Core 5 in this case, as it is going to be the ultimate solution.

单确实还提供ASP.NET 4 *一些项目的支持,但它是很难断言的兼容性,你需要部署到单声道Linux上进行验证。即使在这种情况下你的项目应该针对完整的.NET框架,就像你过去做什么。还有就是针对无单特定的配置文件。

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单声道框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆