asp.net core 2.2中的wwwroot文件夹

编程入门 行业动态 更新时间:2024-10-21 16:27:25
本文介绍了asp core 2.2中的wwwroot文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚刚创建了一个新的ASP.NET Core Web应用程序,并选择了一个空的项目模板.我正在使用Visual Studio Community 15.7.1.

I have just created a new ASP.NET Core web application and selected an empty project template. I am using Visual Studio Community 15.7.1.

在第一次查看解决方案资源管理器时,我看不到那里的"wwwroot"文件夹.有谁碰巧知道如果使用asp core 2.2,wwwroot不再可见?

Upon a first look at the solution explorer I can see no "wwwroot" folder there. Does anyone happen to know if with asp core 2.2 the wwwroot is not visible any longer?

我检查了文档,但找不到任何东西.创建另一个文件夹并从那里提供我的静态文件没有问题,但是我很好奇.

I checked the documentation and I could not find anything. No issues in creating another folder and serve my static files from there but I was just curious.

谢谢.

推荐答案

尝试将新文件夹添加到项目中并将其命名为wwwroot.它的外观应带有适当的图标,并可以按预期工作.当我使用空项目模板时,.NET Core Web应用程序总是会发生这种情况.这是在VS 2017 v15.9.3.

Try adding a new folder to the project and call it wwwroot. It should take on the appearance with the proper icon and work as expected. This always happens to me with .NET Core web apps when I use the empty project template. This is occurring in VS 2017 v15.9.3.

更多推荐

asp.net core 2.2中的wwwroot文件夹

本文发布于:2023-11-07 11:05:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566284.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件夹   net   asp   core   wwwroot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!