我看不到在项目中创建的文件夹 [英] I can't see the folders I created in my project

查看:224
本文介绍了我看不到在项目中创建的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在Microsoft Visual Studio 2012中使用C#开发一个项目.由于我有很多C#文件,因此我决定根据它们的类型将它们放在几个文件夹中.例如,一个interfaces文件夹和一个enumerations文件夹.

I have been working on a project in C# in Microsoft Visual Studio 2012. Since I have a lot of C# files I decided to put them in a few folders based on their type. For example an interfaces folder and an enumerations folder.

现在,当我打开项目时,我看不到任何文件夹,并且我的所有C#文件都不在文件夹中.我无法打开文件,因为它说目录已更改或已删除.我正在添加照片,这样您就可以看到我发生了什么事情.

Now when I open my project I can't see any of my folders and all of my C# files are not in folders. I can't open the files because it says that the directory has changed or has been deleted. I am adding a photo so you will be able to see what happened to me.

推荐答案

您应该已经在VS Solution Explorer中创建了文件夹并将文件移到了 内,然后将自动跟踪所有内容.

You should've created the folders and moved the files inside the VS Solution explorer, then everything is tracked automatically.

解决此问题的最简单方法是在解决方案资源管理器的顶部启用显示所有文件",刷新视图以确保您可以看到所有内容.

The easiest way to fix this is to enable "Show all files" at the top of the solution explorer, refresh the view to make sure you can see everything

然后右键单击稍微变灰的文件夹,然后选择包含在项目中"

Then right-click the slightly grayed out folders and choose "Include in project"

完成后,删除已损坏"的旧文件.

Once that's done, delete the "Broken" old files.

这篇关于我看不到在项目中创建的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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