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

我想部署ASP。在Linux上安装了mono的NET web应用程序。

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.

据我所知,Mono是一个目标平台,类似于. dnx 4.5.1或. dnx Core 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?

令人惊讶的是,我没有找到任何指示。我正在创建一个新的ASP。NET 5/vNext项目,我看到的是4.5.1和核心5.0编译目标。如何在列表中添加Mono ?

3 个解决方案

#1


2

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

在VS中有一些Mono产品/Mono将Mono集成到VS中,但是现在没有了。

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

在这种情况下,你应该以。net Core 5为目标,因为它将是最终的解决方案。

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.

Mono仍然为ASP提供了一些支持。净4。*项目,但是很难断言兼容性,因为您需要在Linux上部署到Mono以进行验证。即使是在这些情况下,您的项目也应该像以前一样以全。net框架为目标。没有针对目标的特定于Mono的概要文件。

更多相关文章

  1. Linux 下部署Django项目
  2. 项目连接MySQL数据库,提示异常
  3. 新导入项目数据库导入失败
  4. ssh项目 com.mchange.v2.c3p0.impl.NewProxyPreparedStatement不
  5. Code First for Mysql 错误:未为提供程序“MySql.Data.MySqlClien
  6. HSQLDB / Oracle - IN子句中的1000多个项目
  7. 测试Android真机访问电脑主机web项目服务器的问题
  8. 从零开始的Android新项目10 - React Native & Redux
  9. Android Studio如何使用GitHub上的开源项目

随机推荐

  1. 过滤器详解的10篇内容推荐
  2. 有关ProgressBar的文章推荐10篇
  3. 浅谈AspectCore_实用技巧
  4. 有关c++11的文章推荐10篇
  5. 浅谈 基础回顾 核心架构设计
  6. 关于foreach循环的实例用法汇总
  7. 服务框架的10篇内容推荐
  8. 右值引用如何使用?总结右值引用实例用法
  9. 异常设计函数定义与用法汇总
  10. 有关装箱的文章推荐10篇