Where is svcutil.exe in Windows 7?

前端 未结 6 861
北恋
北恋 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: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/
    

提交回复
热议问题