VS 2017产生参考错误 [英] VS 2017 produces reference error

查看:86
本文介绍了VS 2017产生参考错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,"实用程序"项目已在"测试操作"项目中引用。  但是,我收到的错误是引用不是命名空间的一部分,但它在intellisence中可见。  任何人都知道这里发生了什么?

Hello, The Utilities project has been referenced in the Test Actions project.  However, I'm getting an error that the reference is not part of the namespace, yet it is seen in intellisence.  Anyone know what's happening here?

closl

推荐答案

Hi closl,

Hi closl,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

>>"实用工具"项目已在"测试操作"项目中引用。

请转到"参考"并确保正确添加此参考,并且该参考旁边没有任何警告或其他图标。尝试删除并重新添加此引用,然后清除,重建解决方案或关闭所有标签
并重新启动VS以检查此问题是否仍然存在。  

Please go to 'Reference' and make sure this reference be added correctly and there is no warning or other icons beside the reference. Try to remove and re-add this reference and Clean, rebuild the solution or close all tabs and restart the VS to check if this issue persists or not.  

>>但是,我收到的错误是该引用不是命名空间的一部分,但它是在intellisence中看到的。

请看一下这个类似的错误:
http://stackoverflow.com/questions/3304741/getting-type-or-namespace-name-could-not-be-found-but-everything -seems-ok

Please have a look at this similar error: http://stackoverflow.com/questions/3304741/getting-type-or-namespace-name-could-not-be-found-but-everything-seems-ok

这可能是两个项目之间.Net框架版本不兼容的结果。您需要确保Utilities项目和Test Actions项目针对相同的.NET Framework版本。如果没有,请根据您的情况升级或下载并重新添加此参考

This can be the result of a .Net framework version incompatibility between two projects. You need to make sure the Utilities project and Test Actions projects target to the same .NET Framework version. If not, please upgrade or download and re-add this reference per your condition.

祝你好运,

Sara


这篇关于VS 2017产生参考错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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