Visual Studio 2012无法识别服务引用类. [英] Visual Studio 2012 does not recognize Service Reference classes.

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

问题描述

我最近从vs2008升级到vs2012.在vs2012中,每当我使用添加服务参考..."查看通过使用wsdl创建的类时,vs2012都会将这些类标记为未定义.

I recently upgraded to vs2012 from vs2008. In vs2012 whenever I'm viewing classes that were created by consuming a wsdl with "Add Service Reference...", vs2012 marks these classes as undefined.

我已经尝试取消选中引用程序集中的重用类型"高级服务参考设置中的选项",则无法解决此问题.

I've already tried unchecking the "Reuse types in referenced assemblies" option in the advanced service reference settings, this did not solve the issue.

当我在同事计算机上的vs2008中查看此文件时,该类将被识别并且可以正常工作.有什么建议吗?

When I view this file in vs2008 on my coworkers computer, the class is recognized and works fine. Any suggestions?


推荐答案

懒惰的人,

根据您的描述,请参考以下情形:

According to your description, please refer to the following scenario:

1).请清理您的解决方案,并构建项目以观察结果.

1). Please clean your solution, and build the project to observe the results.

2).请删除VS2012中的Service Reference类,然后在VS2012中重新添加Service Reference类以观察结果.

2). Please delete the Service Reference classes in VS2012 and re-add the Service Reference classes in VS2012 to observe the results.

此致

奥斯卡


这篇关于Visual Studio 2012无法识别服务引用类.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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