Friday, February 17, 2006 5:29 PM
by
brian
Visual Studio 2005, still locking assemblies
I can not believe this still happens. VS 2005 with no addins, no other apps running that would access the assembly and requiring a complete shutdown of VS to free the file. Third time this week.

[UPDATE] This only seems to happen when my WinForm project is in the solution. I have a couple class libraries with custom controls and a WinForm app to test them with. The custom controls are added to the WinForm by dragging from the toolbox area that lists the components in the solution. The references to the class libraries are added by Visual Studio when the controls are dropped on the form.
The strange thing is that I can go for a couple hours without getting the error. After the first error that forces me to restart Visual Studio, I get the error again on the second build after each restart. The assembly is getting locked during or after the first build.
The development of my custom controls has become:
code - build - code - build error - restart - repeat