Where is svcutil.exe in Windows 7?

前端 未结 6 811
北恋
北恋 2020-12-12 16:54

For my WCF, I need to generate configuration file for my client application to specify things such as binding of service, the address of the service and the contract.

相关标签:
6条回答
  • 2020-12-12 17:17

    To find any file location

    1. In windows start menu Search box
    2. type in svcutil.exe
    3. Wait for results to populate
    4. Right click on svcutil.exe and Select 'Open file location'
    5. Copy Windows explorer path
    0 讨论(0)
  • 2020-12-12 17:28

    If you are using vs 2010 then you can get it in

    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools
    
    0 讨论(0)
  • 2020-12-12 17:35

    Type in the Microsoft Visual Studio Command Prompt: where svcutil.exe. On my machine it is in: C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SvcUtil.exe

    0 讨论(0)
  • 2020-12-12 17:35

    With latest version of windows (e.g. Windows 10, other servers), type/search for "Developers Command prompt.." It will pop up the relevant command prompt for the Visual Studio version.

    e.g. Developer Command Prompt for VS 2015

    More here https://msdn.microsoft.com/en-us/library/ms229859(v=vs.110).aspx

    0 讨论(0)
  • 2020-12-12 17:36

    I don't think it is very important to find the location of Svcutil.exe. You can use Visual Studio Command prompt to execute directly without its absolute path,

    Syntax:
    svcutil.exe /language:[vb|cs] /out:[YourClassName].[cs|vb] /config:[YourAppConfigFile.config] [YourServiceAddress]
    
    example:
    svcutil.exe /language:cs /out:MyClientClass.cs /config:app.config http://localhost:8370/MyService/
    
    0 讨论(0)
  • 2020-12-12 17:37

    Try to generate the proxy class via SvcUtil.exe with command

    Syntax:

    svcutil.exe /language:<type> /out:<name>.cs /config:<name>.config http://<host address>:<port>
    

    Example:

    svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceSamples/myService1
    

    To check if service is available try in your IE URL from example upon without myService1 postfix

    0 讨论(0)
提交回复
热议问题