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

查看:17
本文介绍了面向 .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/

我正在启动一个完全未开发的个人项目,并将其视为学习所有这些新技术的机会.但是,我想重用来自使用众所周知的库的其他 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 上,微软最终也会将 .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 core 有 Go Live 许可证,微软会提供支持,并且是 准备生产选择哪个?

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 web 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

底线:

使用新的频繁发布

我一开始的感觉 一旦出现阻塞实现我就会跳出来,现在越来越有信心,实际上你可以有一个灵活的解决方案你学会了.

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天全站免登陆