How to resolve “'installutil' is not recog

2019-01-20 23:28发布

Just tried to run an application via the following:

enter image description here

I have browsed to the directory with an app WindowsService1.exe in it, then tried the command Installutil WindowsService1.exe but got the following error...

enter image description here

As VS has only been installed for a day or two I'm worried that something may be wrong with that install as it should recognise installutil.

Are there some basic diagnostics I can perform to ensure that VS Command Prompt is finding all the programs that it should ?

EDIT

If i run PATH in the command prompt I see the following:

enter image description here

9条回答
趁早两清
2楼-- · 2019-01-21 00:06

open visual studio command prompt in admin mode i.e., right click on vs command prompt and run as administrator

查看更多
狗以群分
3楼-- · 2019-01-21 00:07

InstallUtil.exe is typically found under one of the versions listed under C:\Windows\Microsoft.NET\Framework.

In my case it is under v4.0.30319.

You could just check your path:

echo %PATH%

should give you a list of directories searched for executables.

查看更多
该账号已被封号
4楼-- · 2019-01-21 00:11

Unless you've modified your path, the following should be available in developer command prompt and not cmd:

  • msbuild
  • mstest(for ultimate)
  • csc
  • ilasm

... etc

If those aren't available you may have a corrupted install.

查看更多
登录 后发表回答