Windows窗体项目中的Visual Studio打开控制台 [英] Visual Studio Opening Console In A Windows Form Project
问题描述
这些是我的项目属性: https://imgur.com/a/lYNvE
这是代码: https://imgur.com / a / vj5Cx
这只是默认的WindowsFormApp项目。它会在启动时打开控制台而不是窗口。
出了什么问题?
嗨Delivous,
欢迎来到MSDN论坛。
你的VS版是什么?如果您创建一个新的C#窗体表单应用程序,这个问题是否仍然发生?
我发现方法名称是'WinMain',而不是默认名称'Main',请更正它去测试。您还可以在方法中插入断点以检查详细信息。
祝你好运,
萨拉
These are my project properties: https://imgur.com/a/lYNvE
This is the code: https://imgur.com/a/vj5Cx
It's just the default WindowsFormApp project. It opens a console and not a window upon starting it.
What's going wrong?
Hi Delivous,
Welcome to the MSDN forum.
What's your VS edition? If you create a new C# windows form application, does this issue still happen or not?
I found the method name is 'WinMain', not the default name 'Main', please correct it to test. You can also insert a break-point into the method to check the detail information.
Best regards,
Sara
这篇关于Windows窗体项目中的Visual Studio打开控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!