Chapter I first section understanding. Net Core Projects

Source: Internet
Author: User

Open our almighty VS2015 and choose to create a new. Net core project, and the empty project is fine.

The following projects are completed:

  

First properties This file is about some of the settings of this project, there are interested students can go into the deep research, this section is not described in detail.

Then there is the Wwwroot folder, which is expanded as follows:

  

is used to store the project need to use some static resources, such as CSS files, JS files, pictures and so on static files, are placed in this folder. When using the URL is http://xxx.com/css/xxx.css, not http://xxx.com/wwwwroot/css/xxx.css, here need to pay attention to.

Next is the reference and dependencies are the libraries that the project needs to use, as long as the background is referenced. NET, the dependencies are mainly what the foreground needs to use. Then there is the Controllers folder and the view folder, this is the basic thing of MVC, there is no more nonsense. Okay, let's keep looking down:

  

These papers are more interesting, we take a slow look. The first is Appsettings.json, which is actually the Web. config that we used to be familiar with. We will use it later in the use of the specific usage, and then go back and study it carefully. Then the next is Bundleconfig.json, this is the configuration bundle, specifically what the role and how to use, please Baidu, this side is not much to pull. Then we continue to look down, Program.cs this document, believe that many small partners at a glance to recognize this is what to do. Then is Project.json this file, this file can be great, here bread contains the project will use the Buget package, the contents are as follows:

  

A small partner who is accustomed to using a tool other than vs needs to add the package on its own side and restore it. I didn't use it either (manual funny).

Then it is Startup.cs this file, this file with the most is the dependency injection, to add the necessary things to the project. The last Web. config, this does not say, even this does not understand to go back and read a good book.

OK first bar to see so much first, above content pure hand dozen, inevitably have error, or I cognition wrong, if have wrong, please correct, thank you.

Chapter I first section understanding. Net Core Projects

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.