Tuesday, December 11, 2018

devenv.exe is missing

Visual Studio cannot start debugging because the debug target 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe' is missing. Please build the project  and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly.
"Visual Studio cannot start debugging because the debug target 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe' is missing. Please build the project  and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."

I have received such an error while attempting to create a Visual Studio extension. The code was fine, the log said the build succeeded. devenv.exe missing means you are lacking Experimental Instance of Visual Studio. This can be fixed by downloading Extensibility Tools and Extensibility Manager from Tools > Extension and Updates.

Click to enlarge.
This was NOT the case for me however. I found that the file was present on my computer as I could run Experimental Instance of Visual Studio manually by searching for it from Start menu, but the program could not see it.

It turned out that despite having Visual Studio Community the program was searching for a path to Experimental Instance of Enterprise (see it in the path in the error message?). The path could easily be fixed in Debug > [project name] Properties... > Debug under Start Action as Start external program path.


Click to enlarge.

Introduction

Over the course of my studies I have encountered numerous weird errors in developer software and managed to solve them to progress with my college work, but not before searching fruitlessly for a solution online. Not being one for asking a question on StackOverflow myself whether for the lack of time or simply undesirability to communicate with other human beings I hope that cataloguing the errors on this platform will aid others encountering the same problems in their struggles.