WEB引用在VS中不起作用 [英] WEB References do not work in VS

查看:83
本文介绍了WEB引用在VS中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目在使用Windows 7,VS2015的旧PC上运行良好。我已将其安装在新PC(Windows 10,同一VS)上,并且编辑器中无法识别所有WEB引用和服务引用。它们是可发现的,并且在解决方案的WEB References文件夹的
中正确显示,但都无法识别。在加载解决方案时,我确实得到了一些关于某些属性无法正确加载的模糊错误消息,但没有提供进一步的信息。 

I have a project that worked fine on my old PC using windows 7, VS2015. I have installed it on a new PC (windows 10, same VS) and all the WEB references and service references are not recognized in the editor. They are discoverable and appear properly in the WEB References folder of the solution, but all are not recognized. I do get a vague error message about certain properties not loading properly when I load the solution, but no further information is provided. 

我可以重新发现这些引用没有明显问题,但是它们仍未添加到项目命名空间中。

I can rediscover these references with no apparent problem, but they are still not added to the projects namespace.

推荐答案

嗨Neil,

欢迎来到MSDN论坛。

>>它们是可发现的,并且在解决方案的WEB References文件夹中正确显示,但都无法识别。

您是否遇到构建或智能感知错误消息?请尝试构建此解决方案并检查错误列表窗口,有一个过滤器可帮助我们检查
当前错误消息是Build + Intellisense,Build Only还是Intellisense Only。最好在此处分享详细错误消息或屏幕截图,这将有助于我们分析此问题。

如果您尝试创建新的Web应用程序,它是否正常工作?

请尝试使用以下方法解决此问题:


  1. 右键单击解决方案资源管理器下的解决方案名称,清理解决方案并再次构建
  2. 关闭VS 2015并转到解决方案商店文件夹,删除隐藏文件夹'.vs'并重新启动VS 2015再次打开


最好的问候,

Sara
 


这篇关于WEB引用在VS中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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