程序“ [13492] dotnet.exe”已退出,代码为-2147450749 [英] The program '[13492] dotnet.exe' has exited with code -2147450749
问题描述
在尝试构建和运行hello world dotnetcore控制台应用程序时,该应用程序将关闭,没有任何异常。在调试输出上,我看到以下内容。
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.
程序'[13492] dotnet.exe'已退出,代码为-2147450749(0x80008083)
The program '[13492] dotnet.exe' has exited with code -2147450749 (0x80008083).
我的project.json
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
my program.cs
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("help me");
Console.ReadLine();
}
}
我正在使用最新的VStudio更新3。
I am using the latest, VStudio update 3.
推荐答案
我确实有@Lex Li和@DavidG建议的global.json。问题是RC2的一些剩余位。我卸载了所有核心组件,然后重新安装并重新启动。之后,事情又恢复了。谢谢大家的其他解决方案!
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 !
这篇关于程序“ [13492] dotnet.exe”已退出,代码为-2147450749的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!