Visual Studio:代码中的引用无法识别? [英] Visual Studio: references in code not recognized?
问题描述
我在VS2008(C#)中有一个包含多个项目的解决方案.我只是重新编译了一些.csproj文件用于我们的构建过程,突然间,在对Project B进行编码时,它无法在类代码中识别出Project A的引用……想想我创建的变量类型下的红色波浪线.但是,构建解决方案不会产生任何错误.为什么会这样呢?
I have a solution in VS2008 (C#) that contains multiple projects. I just retooled some of the .csproj files for our build process, and suddenly while coding Project B won't recognize references from Project A in the class code...think the red squiggly lines under a variable type I've created. However, building the solution generates no errors. Why's it behaving like this?
推荐答案
我建议您清除Visual Studio临时文件-它经常会使项目结构感到困惑,并且需要重新开始.
I would suggest that you clear your Visual Studio temp files - it can often get confused about project structures and require a fresh start.
首先,完全退出VS并重新启动它.如果问题仍然存在,请找到您的VS缓存文件夹并将其删除,然后进行重建.
First, quit out of VS completely and restart it. If the problem is still there, find your VS cache folder and delete it, and then do a rebuild.
For help finding your cache folder, check this post.
这篇关于Visual Studio:代码中的引用无法识别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!