Visual Studio:代码中的引用无法识别? [英] Visual Studio: references in code not recognized?

查看:401
本文介绍了Visual Studio:代码中的引用无法识别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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屋!

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