对于Winform应用程序,F5或开始调试按钮是灰色的吗? [英] F5 or Start Debugging Button is Greyed Out for Winform application?
问题描述
我有一个winform应用程序,但是当我尝试调试我的开始按钮被禁用。
现在,当我尝试调试我的开始调试键被禁用时
我已经完成了:
1)我已经将我的winform应用程序设置为单启动项目。
<我已经删除了多个启动项目选项。
3)我尝试重新启动我的Visual Studio多次。
4)我已经重建了应用程序,它正在建立成功,没有错误。
5)我已经构建了整个解决方案,并且还构建成功,没有错误。
6)我检查了sln文件,格式版本是:
Microsoft Visual Studio解决方案文件格式版本11.00
我认为是正确的。 >
我不知道原因,但这对我有用。我从我的解决方案中排除了项目,然后构建了我的解决方案。
然后我再次添加了我的项目并构建了我的解决方案,并将其设置为启动应用程序已经为我工作了。
(真的说我真的不明白这个原因!)
I know there are many question related to this already on SO but none of them has woked for me till now.
I have a winform application but when I am trying to debug it my Start button is disabled.
Now when I am trying to debug my Start Debugging key is disabled
Things which I have already done are:
1) I have already set my winform application as the Single Start Up project.
2) I have removed the multiple start up project option.
3) I have tried to restart my Visual Studio many times.
4) I have rebuild the application and it is building successfully with no errors.
5) I have build the entire solution and it also build successfuly with no errors.
6) I have checked the sln file and the Format version in it is:
Microsoft Visual Studio Solution File, Format Version 11.00
which I suppose is correct.
I dont know the reason but this one worked for me. I excluded the project from my solution and then build my solution without it.
And then I again added my project and build my solution and set it as Start Up Application and it has worked for me.
(Truly speaking I really dont understand the reasoning for this!)
这篇关于对于Winform应用程序,F5或开始调试按钮是灰色的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!