问题描述
当尝试构建和运行 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).
我的 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"
}
}
}
我的程序.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.
推荐答案
我确实有一个 global.json,正如@Lex Li 和 @DavidG 所提议的那样.问题是来自 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!