Difference between Asp.Net Core 1.0 and .Net Core

2020-07-10 10:42发布

问题:

First of all sorry for my weak English. I have nearly no idea about the differences between asp.net, asp.net core and .net core, etc. I have searched in google about what they are for nearly a whole day. As I have learned, Asp.Net 5 has changed its name to Asp.Net Core 1.0. Also, there is a new framework, .NET Core 1.0, provided to develop cross-platform applications.

Now I have some questions, hopefully not meaningless.

I want to learn the difference between Asp.Net Core 1.0 and .Net Core 1.0. If I want to develop a project, what are the advantages and disadvantages of each?

Lastly if I want to use one of them for a cross-platform application which one is preferable?

Thanks in advance.

回答1:

ASP.Net is for web development specifically, .Net is the general framework behind it. So if you're building a web site, REST API, etc. you'd use ASP.Net, otherwise just .Net.

And .Net Core 1.0 released a couple days ago so don't bother with the RC2 version (release candidate).

Your link to 2.0 is to some random Nuget package with a 2.0 version, nothing to do with .Net Core.



回答2:

.NET Core 1.0 is not the next version of .NET 4.6.2 (Full .NET Framework). If it is the next version it should have more features than the previous version. But according to Microsoft .NET Core 1.0 doesn't have some of the features .NET 4.6 got. That's why they named it as .NET Core 1.0 instead of .NET 5.

In ASP.NET Core 1.0 they are using .NET Core 1.0 as reference. That means we don't need to install .NET framework to run our ASP.NET Core 1.0 application.

If you are going to develop cross platform web application you have to use ASP.NET Core 1.0.



回答3:

.NET Core is a Framework for building cross-platform applications using C# or other .NET tools. It builds upon .NET.

ASP.NET Core is basically when you use .NET Core in order to create Web applications. Technically, it's made of .NET Core libraries.

If you want to know more about why and when ASP.NET Core can be used, you can read more for free from my book here: https://leanpub.com/netcore/read_sample (select the Why ASP.NET Core ? chapter).



回答4:

.Net Core 1.0 is the new name for the latest version of the .Net Framework. It has been re-written from the ground up.

ASP.Net Core 1.0 is essentially the new version of ASP.Net MVC and Web.API combined in to a single product that leverages the new .Net Core 1.0. Like .Net Core 1.0, ASP.Net Core 1.0 has also been rewritten from the ground up.

Both products .Net Core 1.0 and ASP.Net Core 1.0 have been given full release status within the last few weeks.

The .Net Core 2.0 link you posted is actually for .Net Core 1.0 but the package is version 2.0.7