I ran into a problem similar to the one that was shown in this SO question:
Unable to start program "C: \ Program Files \ dotnet \ dotnet.exe"
I am asking this question not to create a duplicate, but to provide additional information, because the problem only started after I installed Python from my main website, Python Tools from Microsoft and Anaconda from Continuum. I would argue that Anaconda is to blame.
When I create any .NET Core project, whether itβs a console or a network, and I try to debug it in Visual Studio 2015, I get this error:

I installed Python on both a PC running Windows 7 SP1 and a PC running Windows 10. Until then, I was able to create, compile, and debug a Net Core project in Visual Studio 2015 without any problems. When I started VS 2015 a couple of days after installing Python, both computers ran into a problem.
This is not a Net Core problem, it is a Visual Studio 2015 problem. I am sure because if I create and run from the CLI, or if I debug using Visual Studio code, everything works as expected, the problem affects only the Visual Studio 2015 community .
Following a few posts on this subject, I tried unsuccessfully the various suggested solutions:
- Restarted endless time for both Windows 7 and Windows 10.
- Reset Visual Studio Settings.
- The remote project.json and lock file deleted the .vs folder.
- Refurbished .Net Core.
- Renovated VS 2015.
- Remote tools Python, Python, Anaconda.
- Uninstalled / reinstalled Visual Studio 2015 and Net Core Tools for VS several times.
- Removed and reinstalled redistributable VC ++, x86, and x64.
- I tried to start VS in normal mode and as an administrator.
- Force dotnet.exe to run as an administrator.
- Created new HelloWorld projects from scratch.
- Open source projects created using Visual Studio Code, which can be debugged without errors in Visual Studio Code.
- Unregister.
- Used by VS 2015 without login.
- Selected in debugging options: use managed sharing mode.
- Selected in debugging options: use basic compatibility mode
- Selected in debug options as Options
The problem occurs when you start debugging using the play button or when choosing Debug-> Start Debugging (F5). The code compiles without errors, then a message box appears when the application, even a simple "Hello World", should start.
- The options are Debug / Any Processor.
- The dotnet.exe file is in its folder as expected.
- If I use Process Monitor, I see the dotnet.exe process is created with success, like a child devenv.exe, and then immediately exited, with 0.0000 user time and kernel time.
If I select Debug -> Start Without Debugging (CTRL + F5), the code will work without problems.
If I select Debug β Attach To Process β dotnet.exe [type Managed (Core CLR), x64], by default I get an error: "Unable to connect to the process. There is no more data"
Any hint to solve this problem without formatting the disk and reinstalling Windows from scratch?
Edit
This is project.json for the newly created solution, the standard "Hello World":
{ "version": "1.0.0-*", "buildOptions": { "emitEntryPoint": true }, "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.1" } }, "frameworks": { "netcoreapp1.0": { "imports": "dnxcore50" } } }
The value "Path" in the environment variables for "all users":
%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem; %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\Program Files\Intel\WiFi\bin\; C:\Program Files\Common Files\Intel\WirelessCommon\; C:\blp\API;C:\blp\API\dde; C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\; C:\Program Files\Microsoft SQL Server\120\Tools\Binn\; C:\Program Files (x86)\Skype\Phone\; C:\Program Files\Microsoft SQL Server\130\Tools\Binn\; C:\Program Files\Microsoft DNX\Dnvm\; C:\Program Files\dotnet\; C:\Program Files\Git\cmd
For my user only:
C:\blp\DAPI; C:\blp\DAPI\DDE; C:\Program Files (x86)\Microsoft VS Code\bin