ASP.NET Core应用程序的解决方案资源管理器中的文件嵌套 [英] File nesting in solution explorer of ASP.NET Core application

查看:217
本文介绍了ASP.NET Core应用程序的解决方案资源管理器中的文件嵌套的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建ASP.NET Core 2.0 Razor Page模板项目时,每个.cshtml及其.cs文件都会被拆分.我不知道为什么,几分钟前它可以正常工作,但我不记得自己做了什么.也许是SDK或Visual Studio的设置.我不知道.这是我的问题的屏幕快照预览.左侧是我的解决方案资源管理器,右侧是我想要的.

when i created ASP.NET Core 2.0 Razor Page template project, every .cshtml and their .cs file are splitted. I don't know why, before few minutes its working fine but i can't remember what i did. Maybe SDK or settings of Visual Studio. I don't know. Here are screenshot preview of my problem. On the left side is my solution explorer and on the right side is what i want.

谢谢您的任何建议.

推荐答案

我遇到了同样的问题.您需要在解决方案资源管理器中启用文件嵌套. 只需点击图片中的该按钮即可:

I had the same problem. you need to enable file nesting in the solution explorer. just click that button in the image:

这篇关于ASP.NET Core应用程序的解决方案资源管理器中的文件嵌套的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆