我在哪里可以找到WSDL.exe?

时间:2023-01-19 19:00:16

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

我有Visual Studio 2010 Ulitmate(与MSDN Premium版),但我似乎找不到这个文件。

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

我试过安装Visual Studio SDK,但是好像找不到这个文件。

I have looked in:

我有了:

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

But I can't seem to find it.

但我似乎找不到。

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

(如果你想知道,我需要它来执行这些步骤。)

3 个解决方案

#1


63  

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

它应该在C:\Program Files (x86)\ MicrosoftSdks \ Windows \ v7.0a \ Bin。您应该能够使用来自visual studio命令提示符的wsdl,在visual studio命令提示符中输入路径将提供您可能需要的所有工具的位置。希望这有助于

#2


5  

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

Visual Studio 2010有自己的命令提示符,有很多功能可以使用。您可以从那里调用wsdl命令

#3


1  

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

不能wdsl运行。从命令提示符直接执行,因为它不在DOS搜索路径中。您需要显式地指出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

MsBuild脚本

<Target Name="UpdateWebReference"> 
    <Message Text="Updating Web Reference..."/> 
    <Exec Command="wsdl.exe /o &quote;$(OutDir)&quote; /n &quote;$(WebServiceNamespace)&quote; &quote$(PathToWebServiceURL)&quote;"/> 
</Target> 

#1


63  

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

它应该在C:\Program Files (x86)\ MicrosoftSdks \ Windows \ v7.0a \ Bin。您应该能够使用来自visual studio命令提示符的wsdl,在visual studio命令提示符中输入路径将提供您可能需要的所有工具的位置。希望这有助于

#2


5  

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

Visual Studio 2010有自己的命令提示符,有很多功能可以使用。您可以从那里调用wsdl命令

#3


1  

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

不能wdsl运行。从命令提示符直接执行,因为它不在DOS搜索路径中。您需要显式地指出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

MsBuild脚本

<Target Name="UpdateWebReference"> 
    <Message Text="Updating Web Reference..."/> 
    <Exec Command="wsdl.exe /o &quote;$(OutDir)&quote; /n &quote;$(WebServiceNamespace)&quote; &quote$(PathToWebServiceURL)&quote;"/> 
</Target>