如何移植到.NET Core? [英] How to port to .NET core?

查看:163
本文介绍了如何移植到.NET Core?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找从 Windows 移植某些Web项目的可能性. ="https://www.microsoft.com/net" rel ="nofollow noreferrer">.NET框架到开源.NET核心

I was looking for possibilities for porting some web projects from Windows .NET framework to Ubuntu linux using open source .NET core

在与 Mono 进行了很多斗争之后,我几乎放弃了.我一直在把 .NET核心视为新希望.让我们任何人

After a lot of struggle with Mono, which I have almost gave up. I was looking at .NET core as a new hope. Have anyone of us ported from .NET to .NET core?

如果可以,可能出现的问题可以像我遇到过的Mono一样吗? 可以共享吗?

If yes, can the possible problems like the ones I faced with Mono be shared?

推荐答案

从.NET迁移到.NET Core是一项巨大的举措,尤其是在您要利用Core的情况下.当前没有一键式端口,而且我怀疑您是否会获得一键式迁移,例如从VS 2013项目迁移到VS 2015项目.整个启动流程是不同的,要自动切换到该流程将非常困难.就目前而言,我所看的是从本质上讲,改用.NET Core是一种重写.至于这对于您的项目来说是否值得-真的很难说,也可能不太适合该站点.

Moving from .NET to .NET Core is a huge move, especially if you're going to take advantage of Core. There is not currently a one click port, and I doubt you'll ever get a one-click migration like migrating from a VS 2013 project to a VS 2015 project. The entire startup flow is different, and to automate switching to that would be incredibly difficult. For now, the way I am looking at it is that moving to .NET Core is essentially a rewrite. As to whether that is worth it to you for your project - well that's really hard to say and also probably not well suited to that site.

也就是说,如果您进行重写,则可能会带来很多业务逻辑.您只需要重做许多其他结构即可.

That said, if you do rewrite you can probably bring along a lot of your business logic. You just will need to redo a lot of the other structure.

这篇关于如何移植到.NET Core?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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