nellbryant
nellbryant

Reputation: 3169

Where is svcutil.exe in Windows 7?

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.

Upvotes: 110

Views: 179321

Answers (6)

Nileshrao  Sawant
Nileshrao Sawant

Reputation: 181

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

Upvotes: 18

Venkatesh Muniyandi
Venkatesh Muniyandi

Reputation: 5640

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

Upvotes: 26

itb564
itb564

Reputation: 223

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/

Upvotes: 2

James Fleming
James Fleming

Reputation: 2589

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

Upvotes: 2

st35ly
st35ly

Reputation: 1255

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

Upvotes: 4

Petar Minchev
Petar Minchev

Reputation: 47403

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

Upvotes: 155

Related Questions