I am under the impression that the wwwroot directory is not just a normal folder. How do I add it to my project in Visual Studio 2019?
I have added the following to my Configure method in my Startup.cs file:
app.UseDefaultFiles();
app.UseStaticFiles();
Now I just need to add the wwwroot directory itself.
I am trying to do it for step 2 in the following tutorial: https://docs.microsoft.com/en-gb/aspnet/core/tutorials/web-api-javascript?view=aspnetcore-3.0
What is a wwwroot directory? Just a normal folder or something else?
Just add a normal folder and call it wwwroot
. That´s it.
在项目中添加一个新文件夹,并将其命名为“ wwwroot”,文件夹图标将自动更改。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.