简体   繁体   English

Visual Studio 2017 调试

[英]Visual Studio 2017 debugging

I'm using Visual Studio version 15.8.7 and .NET framework Version 4.6.01590 and writing in VB.NET.我正在使用 Visual Studio 版本 15.8.7 和 .NET 框架版本 4.6.01590 并在 VB.NET 中编写。 For some reason I am unable to run any code.由于某种原因,我无法运行任何代码。

When trying to run:尝试运行时:

    Module Module1

    Sub Main(args As String())
        Console.WriteLine("Hello World!")
        Console.ReadKey(True)    
    End Sub

End Module

It just does not run.它只是不运行。 The console pops up for a split second and then I get "The program '[17080] ConsoleApp1.exe' has exited with code 0 (0x0)."控制台一瞬间弹出,然后我得到“程序‘[17080] ConsoleApp1.exe’已退出,代码为 0 (0x0)。” When running it with Ctrl+F5 I only get "Press any key to continue..." and no "Hello World!".使用 Ctrl+F5 运行它时,我只会得到“按任意键继续...”而没有“Hello World!”。

When trying to run Windows Form App, nothing pops up and I get the same "has exited with code 0 (0x0)."尝试运行 Windows 窗体应用程序时,什么也没有弹出,我得到相同的“已退出代码 0 (0x0)”。

I tried reinstalling Visual Studio, but nothing changed.我尝试重新安装 Visual Studio,但没有任何改变。

Any recommendations?有什么建议吗?

Best Regards, SilverR最好的问候, SilverR

结果证明问题是由 Palo Alto Traps 反恶意软件引起的,它不会让 Visual Studio 生成的任何 *.exe 运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM