Error Windows can not find 'svcutil.exe'

0

Among the many projects here in the company, there is one that when I compile gives the following error:

  

Windowscannotfind'svcutil.exe'

WhatdoIdotoresolvethiserror?

ThisistheversionofmyVisualandFramework:

  • Visual Studio Ultimate 2013
  • Folders in Microsoft SDKs\Windows :

    v7.0A , v7.1A , v8.0 , v8.0A , v8.1 and v8.1A

Only one of the projects has the error, the others run normally, the project that presents the error is using the version:

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    
asked by anonymous 11.02.2016 / 19:01

2 answers

2

What was missing was to get the full path of the application, which in this case was C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools and put in the environment variable PATH after ; .

To change, go to:

  • My Computer > Advanced settings > Environment Variables
  • Find the word PATH and two-click with the mouse (mouse)
  • Edit the value field of the variable and then go to "Ok"
  • Sometimes it is necessary to log off or restart, but it is not always necessary

Before I had created a new variable and put it there. Did not work. So I got the full path and put it in the PATH variable, which already exists in the windows environment. With that I was able to make it work. That is, Windows has found the application.

    
15.02.2016 / 12:19
0

Use the SDK version for .NET 4.0 available here:

link

svcutil.exe that is in v7.1 / bin has version 3.0 ... (not 4.0)

svcutil.exe which is in v7.1 / bin / NETFX 4.0 Tools has the 4.0 version ... (4.0, you should use this!)

    
13.02.2016 / 09:09