Where can I find WSDL.exe?

2019-04-03 01:31发布

I have Visual Studio 2010 Ulitmate (with MSDN Premium), but I can't seem to find this file.

I have tried installing the Visual Studio SDK but I can't seem to find the file.

I have looked in:

  • C:\Windows\Microsoft.NET\Framework\v3.5
  • C:\Windows\Microsoft.NET\Framework\v4.0.30319
  • C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v3.5

But I can't seem to find it.

(In case you are wondering, I need it to perform these steps.)

3条回答
兄弟一词,经得起流年.
2楼-- · 2019-04-03 01:40

it should be under C:\Program Files (x86)\MicrosoftSdks\Windows\v7.0a\Bin . You should be able to use wsdl from visual studio command prompt and typing path in visual studio command prompt will give you the locations of all tools that you might need. Hope this helps

查看更多
虎瘦雄心在
3楼-- · 2019-04-03 01:59

Can't run wdsl.exe directly from the command prompt because it's not in the DOS search path. You will need to explicitly indicate the full path to the wdsl.exe

I haven't tried the code below but you should be able to run it as a prebuild action on your project.

MsBuild script

<Target Name="UpdateWebReference"> 
    <Message Text="Updating Web Reference..."/> 
    <Exec Command="wsdl.exe /o &quote;$(OutDir)&quote; /n &quote;$(WebServiceNamespace)&quote; &quote$(PathToWebServiceURL)&quote;"/> 
</Target> 
查看更多
forever°为你锁心
4楼-- · 2019-04-03 02:04

Visual Studio 2010 comes with its own command prompt with a lot of functionality ready to use. You can invoke the wsdl command from there

查看更多
登录 后发表回答