简体   繁体   English

在Visual Studio中添加Web引用(C#)不会显示Web引用文件夹内容

[英]Adding Web Reference (C#) in visual studio does not show the web reference folder contents

I added the web reference ( 1 ) to one of the Visual Studio(2010) project( Type:Library ) in my current solution. 我在当前解决方案中将Web引用( 1 )添加到Visual Studio(2010)项目( 类型:库 )之一。 Usually when I add this I have a web reference folder created and a couple of files under that folder (wsdl, proxy reference.cs files). 通常当我添加这个时,我创建了一个Web引用文件夹,并在该文件夹下有几个文件(wsdl,proxy reference.cs文件)。 But i don't see the files. 但我没有看到文件。 But I can view the files when seen through windows explorer. 但是我可以通过Windows资源管理器查看文件。

I tried to add it to another project( Type:Windows Service ) in the same solution and I can see the files under it after I added the references. 我尝试将它添加到同一解决方案中的另一个项目( 类型:Windows服务 ),我可以在添加引用后看到它下面的文件。

Note : The web reference is just a wsdl file on my local computer and the web service i am trying to add is internal (not outside firewall) 注意 :Web引用只是我本地计算机上的wsdl文件,我尝试添加的Web服务是内部的(不在防火墙外)

I tried to reload the project, open and close the project and still I don't see the files listed. 我试图重新加载项目,打开和关闭项目,但我仍然没有看到列出的文件。

The files are hidden by default. 默认情况下隐藏文件。 Select a service folder and then click on the "Show hidden files" option in the solution explorer and then click on the "Refresh" button in the solution explorer. 选择服务文件夹,然后单击解决方案资源管理器中的“显示隐藏文件”选项,然后单击解决方案资源管理器中的“刷新”按钮。 This will show you all the wsdl, disco and the reference.cs files in the solution explorer. 这将显示解决方案资源管理器中的所有wsdl,disco和reference.cs文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM