简体   繁体   English

VS2012未检测到解决方案中的文件夹

[英]VS2012 not detecting folders in solution

I recently had a problem where VS2012 intellisense stopped working in my Workflow dll project. 我最近遇到了一个问题,其中VS2012 intellisense停止在我的Workflow dll项目中工作。 It didn't pick up any of my using classes or created variables. 它没有使用我的任何使用类或创建的变量。 It only opened the intellisense if I used the keyboard shortcut. 仅当我使用键盘快捷键时,它才会打开智能感应。

Upon creating a new project to test the problem out I discovered that VS2012 didn't detect folders that I created in my solutions now for some reason. 创建一个新项目以测试问题后,我发现VS2012出于某种原因现在无法检测到我在解决方案中创建的文件夹。 (tested it with fresh console app, dll, wf dll). (已使用新鲜的控制台应用程序,dll,wf dll对其进行了测试)。

To fix the intellisense I tried all the recommend things (delete .suo file, clean rebuild, check if setting are enabled, reset settings.) none of them worked. 为了解决智能问题,我尝试了所有建议的操作(删除.suo文件,清理重建,检查是否启用了设置,重置设置。)这些都不起作用。 I have no idea what to do for the folder problem or if they are related. 我不知道该如何解决文件夹问题或它们是否相关。

Is there any way to solve this? 有什么办法解决这个问题?

The folder problem seems to be solved thanks to @Anton Sizikov. 借助@Anton Sizikov,似乎可以解决文件夹问题。 Any idea on the intellisense problem? 对智能感知问题有任何想法吗?

在此处输入图片说明

It seems that Activities folder is empty, so basically there is no class there, and as a result there is no such namespace defined. 似乎“活动”文件夹为空,因此基本上那里没有类,因此没有定义此类名称空间。

What if you put a class inside it and define a namespace in it? 如果将一个类放在其中并定义一个名称空间,该怎么办?

namespace ActivityLibrary2.Activities
{
   public class Test{}
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM