如果调试器未处于活动状态,则执行冻结 - Visual Studio [英] Execution freezes if debugger is not active - Visual Studio

查看:115
本文介绍了如果调试器未处于活动状态,则执行冻结 - Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我有一个使用C#在Windows窗体中开发的简单应用程序,最近我更换了机器。因此,当我将我的应用程序从github克隆到我的新机器并尝试编译它时,一切顺利(没有任何错误)。除非我的应用程序冻结并且不会启动,除非调试会话处于活动状态(这使得我的应用程序不可归因,甚至无法在没有VS和调试的情况下运行)。



Visual Studio也冻结了,二进制文件(.exe,.obj等)全部被系统锁定,除非我重新启动计算机,否则我无法删除它们。我甚至无法通过控制台使用他们的PID来杀死任务。我可以杀VS和VSBuild等。



我没有安装额外的软件包,也没有任何花哨的东西,它只是一个调用另一个进程的表单应用程序,它与附加的调试器一起工作(配置,运行,关闭,一切)。

需要注意的是,在我以前的PC上项目路径不同,但我可以说我修复了每个项目配置到它所在的当前路径。



有谁知道这是什么一回事?如果任何人需要在这里测试它的回购:

Github





原谅凌乱的代码,我会稍后修复它,因为它只是用于测试。



谢谢!

Hello! I have a simple application developed in Windows Forms with C# and recently I changed machines. So when I cloned my application from github to my new machine and tried to compile it, it all went well (no errors whatsoever). Except that my application freezes and won't start unless a debugging session is active (which makes my application undistributable and even unable to run without VS and debugging).

Visual Studio freezes as well and the binaries (.exe, .obj, etc) get all locked down by System and I can't delete them unless i restart my computer. I can't even kill the tasks through console using their PIDs. I can kill VS though and VSBuild, etc.

I have no extra packages installed nor any fancy stuff going on, it's simply a forms application that calls another process, and it works swell with the debugger attached to it (configuration, running, closing, everything).
One thing to note is that on my previous PC the project path was different, but i can say that i fixed every single project configuration to the current path it is in.

Does anyone knows what is this all about? If anyones needs to test it here's it's repo:

Github



Pardon the messy code, i will fix it later as it is just for testing.

Thank you!

推荐答案

这是我从未听说过的问题。



我唯一的建议是打开资源管理器中的项目文件夹,显示隐藏文件,删除那里的.SUO文件,打开.SLN文件,执行Clean Build菜单 - >清洁解决方案),然后构建解决方案(F6)。
This is a problem I've never heard of.

My only suggestion is going to be to open the project folder in explorer, show hidden files, delete the .SUO file in there, open the .SLN file, do a Clean Build menu -> Clean solution), then Build the solution (F6).


这篇关于如果调试器未处于活动状态,则执行冻结 - Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆