Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The program '[13492] dotnet.exe' has exited with code -2147450749

Tags:

c#

.net-core

When trying to build and run a hello world dotnetcore console app the app closes without any exceptions. On the debug output I see the following.

The program '[13492] dotnet.exe' has exited with code -2147450749 (0x80008083).

My project.json

{
  "version": "1.0.0-*",
  "buildOptions": {
    "emitEntryPoint": true
  },

  "dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.0.0-*",
      "type": "platform"
    },
    "NuGet.CommandLine": "3.4.3"
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": "dnxcore50"
    }
  }
}

my program.cs

 public class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("help me");
            Console.ReadLine();
        }
    }

I am using the latest, VStudio update 3.

like image 970
nVentimiglia Avatar asked Jul 03 '16 23:07

nVentimiglia


2 Answers

This could happen if you don't have the correct framework installed. Go to https://aka.ms/dotnet-download to get the latest framework.

like image 108
Dave Avatar answered Oct 12 '22 18:10

Dave


I did have a global.json as @Lex Li and @DavidG proposed. The problem was some leftover bits from RC2. I uninstalled all core components, reinstalled, and rebooted. After that things worked again. Thanks everyone for your other solutions !

like image 21
nVentimiglia Avatar answered Oct 12 '22 17:10

nVentimiglia