This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20145|Reply: 0

[.NET Core] .netcore wwwroot directory

[Copy link]
Posted on 8/8/2019 10:41:54 AM | | |
wwwroot:网站根目录,存放类似于CSS、JS和图片、还有HTML文件等静态资源文件的目录

It seems to be the default website root directory of IIS, which contains all the "front-end" static files, css, images, js, a folder called lib, and favicon.ico icon files.

The default content in lib is bootstrap and jquery-related content.

views<script src="~/lib/jquery/dist/jquery.js"></script> configure the js file,

In Startup, a parameterless UseStaticFiles() method is called to mark this directory to the site root.








Previous:C# Get the first image of HTML text and screenshot content summary sample code
Next:Visual Studio 2017 multi-line comments, cancel the multi-line comment shortcut
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com