面向.NET4.6或.NET Core 1进行绿地开发? [英] Target .NET4.6 or .NET Core 1 for greenfield development?

查看:95
本文介绍了面向.NET4.6或.NET Core 1进行绿地开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始了解.NET堆栈跨平台的命名约定。
特别是此页面对此进行了很好的解释:
http://blog.tonysneed.com/2016/01/22/ef6-asp-net-core-mvc6/

I'm starting to understand the naming conventions for the .NET stack cross-platform. Particularly this page explained it well: http://blog.tonysneed.com/2016/01/22/ef6-asp-net-core-mvc6/

I'开始一个个人项目,这将是全新的领域,并将其视为学习所有这些新技术的机会。但是,我想重用其他使用知名库的MVC5应用程序中的代码。特别是对于基础设施管道我使用了一些著名的库,例如StructureMap,AutoMapper和用于数据持久性EF(EF 4/5)。

I'm starting a personal project which will be completely greenfield and see it as an opportunity to learn all these new technologies. However, I want to re-use code from other MVC5 applications that use well known libraries. Especially for the infrastructure & plumbing I used some well-known libraries such as StructureMap, AutoMapper and for data persistance EF (EF 4/5).

由于对我应该使用的版本没有限制使用,我应该从头开始并使用最新的ASP.NET Core 1.0,.NET Core 1.0和EF Core 1.0,还是仅使用跨平台的唯一优势?换句话说,如果我永远不会在Windows以外的任何设备上运行此程序,并且希望最大程度地减少与库不兼容的痛苦,那么我是否坚持使用.NET4.6?

Since there is no restriction on what version I should use, should I start from scratch and use the latest ASP.NET Core 1.0, .NET Core 1.0 along with EF Core 1.0 or is the only advantage from using only that it will be cross-platform? In other words, if I am never going to run this on anything but Windows AND want minimum pain with library incompatibilities do I stick with .NET4.6?

我基本上想要利用这次机会学习新知识,而又不影响我的应用程序将来的可移植性。 即使在Windows上,MS最终也会使.NET Core 1成为默认设置吗?

I basically want to use this opportunity to be able to learn the new stuff without impacting on future portability for my application. Will MS eventually make .NET Core 1 the default even on Windows?

推荐答案

看起来MS会在这两者之间做出决定,因为:。NET Core本质上是NET Framework的分支

It doesn`t look MS is going to decide between the two because: .NET Core is essentially a fork of the NET Framework

实际上,当您想要从官方来源获取它,您仍将面临困境。

In fact when you want to get it from official source you will be still facing your dilemma.

Asp.net核心有一个上线许可证,Microsoft将提供支持,并且准备投入生产选择哪个

Asp.net core has a Go Live license, Microsoft will give support and is ready for production, which to choose?

免责声明
我剩下的答案可能是基于意见的...

Diclaimer: The rest of my answer could be opinion based...

如果没有限制,例如您仍然需要SignalR等不受支持的功能,到目前为止,我可以分享我的类似经验:

If you don`t have constrains, e.g. you need still unsupported features like SignalR, I can share my similar experience so far:

我从核心的mvc6网络API开始

I started with a core mvc6 web api

当我需要WCF时并不容易-> 请参见

When I needed WCF it was not so easy -> see here

然后必须使用4.5框架目标类库-> 您现在可以轻松地引用这些内容,并且所有环绕操作都将在Visual Studio中自动完成

Then had to use a 4.5 framework targeted class library -> you can easily now reference those and all the wrap around it will be automatically done in visual studio

我必须找到更多解决方法IIS发布障碍-> 例如

I had to find more ways through IIS publishing obstacles -> for example

底线:

大多数使用新的频繁发布

感觉g从一开始,我就有一旦实现阻塞实现,我就会跳出来,这使人们越来越有信心,实际上,只要学到的越多,您就能拥有一个灵活的解决方案。

the feeling I had at the very beginning that I would jump out of it as soon as a blocking implementation arise, was changing in more and more confidence that actually you can have a flexible solution the more you learn it.

我只能补充一点,您可能想快速阅读文档,并且有更多线索

I can only add that you may want to go for a quick read of the documentation and have more clues

这篇关于面向.NET4.6或.NET Core 1进行绿地开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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