. Net core. net standard. net framework, coreframework

Source: Internet
Author: User
Tags dotnet

. Net core. net standard. net framework, coreframework

Because I am more interested in Microsoft's technology, I have recently studied using Visual Studio Code to develop an Asp.net core project and prepare to start from the backend.

Initially, a console project was created using the dotnet new console. It was found in the configuration file that it was a. netcoreapp2.0 project;

Then, a class library is created using dotnet new classlib. In the configuration file, it is found that this is A. netstandard2.0 project;

 

I'm curious about the differences;

 

First, we are very familiar with. net framework, which is used to generate Windows applications or Asp Web projects on iis;

 

Second,. net core is used to generate cross-platform console applications, ASP. NET Core Web applications, and cloud services;

 

Finally,. net standard is used to generate libraries that can be referenced from all. NET implementations (such as. NET Framework,. NET Core, and Xamarin;

Note:

If you want to use ConfigurationBuilder () to read the configuration file and set basepath, use. netcoreapp2.0, which is not currently supported by. netstandard2.0;

To use StackExchange. Redis for Redis client operations, use. netstandard2.0 and. netcoreapp2.0;

. Netstandard2.0 cannot reference. netcoreapp2.0;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.