Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual C# 2010 Express keeps File Handle after Debugging

After debug, in about 90% of the cases I can't rebuild my solution, because VS keeps the file handle of the old .exe (can't copy the new exe from obj\Debug to bin\Debug). I know that it's VS's file handle for sure, since I checked it with the Unlocker Assistent. Also, I tried the workaround with calling the default namespace the same es the executable, but no luck. Any ideas?

PS: Running it on Windows XP.

like image 204
Matthias Avatar asked Dec 01 '25 04:12

Matthias


1 Answers

Seems to be a bug in VS since 2005. A google search will show MANY posts about this problem that Microsoft has yet to address. It hits me every so often as well when the IDE won't let go of a dll. Unfortunately a restart of VS is required :(

like image 173
Dylan Avatar answered Dec 02 '25 16:12

Dylan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!