Error Windows cannot find 'svcutil.exe'

Asked

Viewed 539 times

0

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

svcuil.exe

Windows cannot find 'svcutil.exe'

What do I do to fix that mistake?

This is the version of my Visual and Framework:

inserir a descrição da imagem aqui

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

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

Only one project shows the error, the others run normally, the project that presents the error is using the version:

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

2 answers

2

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

To change go to:

  • My Computer > Advanced Settings > Environment Variables
  • Look for the word PATH and two clicks with the mouse (mouse)
  • Edit the variable’s value field and then press on all "Ok"
  • Sometimes it is necessary to log out or restart, but it is not always necessary

Before I had created a new variable and put it there. It didn’t work. So I took the full path and put it in the variable PATH, that already exists in the windows environment. With this I managed to make it work. That is, Windows found the application.

  • Which path you placed in the environment variable?

  • In windows PATH, in the variable that takes that name.

  • Path of windows I understood, if it calls variable environment, what is not clear is what value you added after the ;.

  • As I said, the value is the full path of the folder where the svcutil.exe file is. That’s what I put there, which in the little machine would be this: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools

  • So put that in the answer, because the way this writing did not imply that this was the way, please understand how a constructive criticism and that will help your response be valued ;)

  • I’ve edited and put some examples, so your answer might help future users facing the same kind of problem.

  • 1

    @Guilhermenascimento, what I have to say is thank you. It’s even better.

Show 2 more comments

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.