Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between creating a project ASP.NET Core (.NET Core) and ASP.NET Core (.NET Framework)

enter image description here

I don't see clearly the main difference between the last two project types, actually which sense have the last one? .NET Core and .NET Framework?

like image 726
Israel Garcia Avatar asked Jul 06 '16 15:07

Israel Garcia


People also ask

What is the difference between ASP NET core and .NET Framework?

NET Framework to create Windows desktop and server-based applications. This includes ASP.NET web applications. On the other hand, . NET Core is used to create server applications that run on Windows, Linux and Mac.

Is ASP NET core the same as .NET Core?

Asp.net Core is a new version of Asp.net released by Microsoft. It is an open-source used to develop a web framework and can be executed with different browsers like Windows, Mac or Linux. ASP.Net Core is a new version of asp.net. It is a free open source which can run on different OS like Mac, Windows and Linux.

Can ASP NET core work with the .NET Framework?

In order to run ASP.NET Core Apps on the . NET Framework it needs to only reference . Core NuGet packages which contains only the . NET Standard 2.0 builds.


1 Answers

The difference is whether you will be targeting the .Net Core Framework or the Full .Net Framework. And this difference shows up for example in the project.json file.

Another thing to know about is that when you use the "ASP.NET Core Web Application (.NET Framework)" template it's much easier to link to .Net Library Projects that target the full framework when using Visual Studio. It's possible to do it using the "ASP.NET Core Web Application (.NET Core)" template but it requires some manual editing of the project.json file.

It may also be worth mentioning that if you target the Full Framework the web application must be deployed on Windows, whereas targeting the .Net Core framework allows the web application to be deployed to non-Windows environments. But the .Net Core Framework is not as feature rich as the Full Framework. (It has no drawing routines for resizing images for instance). You can read more about choosing the right framework here: https://docs.asp.net/en/1.0.0-rc1/getting-started/choosing-the-right-dotnet.html

Either way, no matter which of these two templates you select, you will be creating a project for creating an ASP.NET Core application.

Some differences in the actual projects created

Here is what the solution looks like in Visual Studio 2015 Update 3 when "ASP.NET Core Web Application (.NET Core)" is chosen (with Empty option):

ill

And here is its project.json file:

enter image description here

Here is what the solution looks like in Visual Studio 2015 Update 3 when "ASP.NET Core Web Application (.NET Framework)" is chosen (with Empty option):

enter image description here

And here is its project.json file:

enter image description here

like image 174
RonC Avatar answered Oct 01 '22 03:10

RonC