I get latest from source control and can not build my visual studio solution. I get the following error:
Cannot copy assembly ‘XYZ’ to file ‘C:\myfolder\bin\Debug\XYZ.dll’. The process cannot access the file because it is being used by another process.
I have rebooted the machine but nothing seems to work. please help.
Use ProcessExplorer to determine what other process is holding the DLL open – my bet is that it is Visual Studio itself. Try closing down any open form Design windows (or all code/design windows in VS.Net for that matter) and see if you still get the same problem.