c# 2019 Preview - does not kill executable so it cannot run again because 'file locked'

  • Thread starter Thread starter BadButBit
  • Start date Start date
B

BadButBit

Guest
I'm using C# 2019 Preview.

in the last two or three days, C# runs smoothly until I stop a debugging session to make some changes and then when I go to run it again the IDE refuses and says

Error Could not copy "obj\Debug\Latin Project 2_2.exe" to "bin\Debug\Latin Project 2_2.exe". Exceeded retry count of 10. Failed. The file is locked by: "Microsoft Visual Studio 2019 Preview (11104)" Latin Project 2_2

Error Unable to copy file "obj\Debug\Latin Project 2_2.exe" to "bin\Debug\Latin Project 2_2.exe". The process cannot access the file 'bin\Debug\Latin Project 2_2.exe' because it is being used by another process. Latin Project 2_2

the screen-shot below shows the IDE w/ error messages and the Windows Task Manager listing application currently running by name in alphabetical order(clearly not listing the current project 'Latin Project 2_2.exe').

1463259.png

because I can't kill an executable not listed in the Task-Manager, I killing C#2019Preview with the Task-Manager about 1 in 5 times I stop my debugger.

a little annoying.

BadButBit


my code is perfect until i don't find a bug

Continue reading...
 
Back
Top