vs.net locking output dlls

  • Thread starter Thread starter Yogesh Kant Roy
  • Start date Start date
Y

Yogesh Kant Roy

I have a solution with 4 projects in it. When I compile the solution, I get
the following error:

Could not write to output file
'D:\CDI_CORONA\CDITools\Admin\AdminClassLibrary\obj\Debug\AdminClassLibrary.
dll' -- 'The process cannot access the file because it is being used by
another process. '

AdminClassLibrary.dll is the output of one of the projects. The "Process
Explorer" tool shows "devenv.exe" as the process holding a lock on the file.

Does anybody know why VS.NET is locking the file? What can I do to
successfully compile the project?

Additional Information: Upon rebuilding the solution, its gives the
following error message:

Cannot delete the project output: is the file read-only?

A failure occurred while attempting to start the compilation.

I can delete the AdminClassLibrary.dll after closing the solution in VS.NET
and then open and it compiles successfully. But after making a change, it
again gives the same error upon recompiling.

Thanks in advance for your help

Yogesh.
 
Back
Top