The program '[13492] dotnet.exe' has exite

2019-06-17 01:56发布

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.

标签: c# .net-core
3条回答
地球回转人心会变
2楼-- · 2019-06-17 02:28

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 !

查看更多
等我变得足够好
3楼-- · 2019-06-17 02:34

I had this same error. It turns out I had no files output in the target bin\Debug\netcoreapp2.1 path. Since there were no files, the process just quit. After investigating I realized that I forgot to re-enable (check) the Build option for that project in the Configuration Manager. Because the build didn't fail (was skipped) it compiled all the other assemblies and just ran. :) It was an older unloaded project I was just getting back to and forgot I disable it.

查看更多
forever°为你锁心
4楼-- · 2019-06-17 02:36

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

查看更多
登录 后发表回答