Failed to start the program "C: \ Program Files \ dotnet \ dotnet.exe"

I installed .NET Core 1.0.1 for use with VS 2015 Update 3, and it works as Administrator (on Windows 8.1 x64).

If I create any .NET Core project, whether it’s a console or a network, and try to start it, Visual Studio then gives an error:

enter image description here

However, I can’t find out why. VS is building it perfectly, and I can run it from the CLI. I can also start Core using VSCode.

I tried:

  • Removing project.lock.json
  • Delete .vs folder
  • Restoring a .NET Core Installation
  • Restore VS 2015 installation
  • Uninstall and reinstall .NET Core / SDK / Tooling and VS
  • Rebooting

And he still refuses to work!

I picked it up on the Core Tooling GitHub, and can also be seen here , but so far we are all a little puzzled.

+6
source share
4 answers

There are some people who have problems with Internet Explorer and Visual Studio. Try installing Internet Explorer 9 or installing a different default browser.

Other approaches:

  • Is the data path checked?
  • Perhaps there are incorrect environment variables configured?
  • Are you sure the configuration was reset by installation?
  • Perhaps the path for temporary data has been changed?
+1
source

Try reinstalling the necessary redistributors as they are needed to run .Net Core on Windows, as indicated here:

https://docs.microsoft.com/en-us/dotnet/articles/core/windows-prerequisites "NET Core requires VC ++ to be distributed when working on Windows"

If this does not work, add try / catch at the highest level of your application and write down all System.Exceptions that may occur. This may give you more information about this error.

+1
source

This error occurs if you change the name of the project. To get around this error, you will have to delete all the files in the \ object and \ bin folders. After that rebuild the application.

0
source

Restart visual studio in admin mode. This solved my problem.

-one
source

All Articles