30

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?

1

2 Answers 2

21

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

Sign up to request clarification or add additional context in comments.

Comments

20

ASP.NET Core can run on top of .NET Core or the full .NET Framework. So there's a template depending on whether you want to build on .NET Core or the full .NET Framework.

Here's an infographic that Microsoft put together that visually demonstrates the concept:

Infographic showing ASP.NET Core running on top of .NET Framework and .NET Core

No matter which template you choose, you can always edit your configuration to target both at the same time. But the templates just help you get started with one or the other.

4 Comments

Has anyone got the asp.net core application targeting the full framework to work on IIS? I get a bunch of errors related to files/dlls not being found and the app does not work?
Best asked as a separate question.
@JBA It's best not to piggyback your question. Ask a new one, and give enough appropriate detail such as describing your configuration and error messages.
According to this I can have the Full Framework and asp.net core libraries without no issue. Seems that this is because ASP.NET CORE libraries are dependant of ".NET Standard" library which are implemented by .NET Framework 4.5.x or 4.6.x (check this link: learn.microsoft.com/en-us/dotnet/articles/standard/library), .NET Core also implements those Standard Libraries, so .NET Standard Libraries are the one that make that possible. I am right?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.