VS2010 SvcUtil.exe 命令无法识别 [英] VS2010 SvcUtil.exe command not recognized
问题描述
我试图通过 Visual Studio 命令行提供的 SvcUtil.Exe 工具生成代理.我已经检查了它所在的默认目录,我看到可执行文件在以下目录中
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
按照 MSDN 的指示,我已导航到我的客户端目录,并使用了以下命令:
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?
推荐答案
您可以在路径变量中设置要使用的 svcutil 的路径,也可以指定完整路径C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\svcutil.exe/language:cs/out:generatedProxy.cs/config: app.config http://本地主机:8000/服务
You can either set the path of the svcutil that you want to use in the path variables, or specify the full path C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\svcutil.exe /language:cs /out:generatedProxy.cs /config: app.config http: //localhost:8000/service
这篇关于VS2010 SvcUtil.exe 命令无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!