Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 SvcUtil.exe command not recognized

I am attempted to generate a proxy through the SvcUtil.Exe tool that if offered on the visual studio command line. I have checked in the default directory where this resides, and I have seen that the executable is there in the following directory

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

I have my client which I am attempting to generate a proxy for at

C:\Users\Eric\Documents\Visual Studio 2010\Projects\WcfServiceConsole

As directed by MSDN, I have navigated to the directory of my client, and I have used the following command:

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

I am getting the usual error response from the command line:

"svcutil.exe is not recognized as an internal or external command, operable program
 or batch file".

What can I do sot hat I can navigate to my project's solution, and then use this tool?

like image 368
TheJediCowboy Avatar asked Jun 21 '11 04:06

TheJediCowboy


People also ask

Where SvcUtil exe is located?

The ServiceModel Metadata Utility Tool can be found at the Windows SDK installation location, specifically %ProgramFiles%\Microsoft SDKs\Windows\v6.

What is SvcUtil dotnet?

The Windows Communication Foundation (WCF) dotnet-svcutil tool is a . NET tool that retrieves metadata from a web service on a network location or from a WSDL file, and generates a WCF class containing client proxy methods that access the web service operations.

What is Visual Studio command prompt?

Visual Studio includes two command-line shells for developers, a command prompt and an instance of PowerShell, as follows: Visual Studio Developer Command Prompt - A standard command prompt with certain environment variables set to make using command-line developer tools easier.


1 Answers

To set this path permanently in your command prompt:

Go to Control Panel >> System >> Advanced Tab >> Environment Variables

System Properties in Control Panel

In System Variables, select the PATH row and click Edit:

enter image description here

Then, paste the directory C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ and click Ok:

enter image description here

Now, you can use the command without typing the full directory.

like image 168
Exel Gamboa Avatar answered Oct 03 '22 02:10

Exel Gamboa