Got an error ("The process cannot access the file ... because it is being used by another process") when I changed the solution (Visual Studio 2010 C # Express Service Pack 1) from two large (10 source files, ~ 500 lines to one file) with one link to another, to a batch (6) of small projects with a large number of projects that link to other projects.
Links to dll and exe files (Debug versions of them), and not to projects, even if the projects were in the same solution.
Then I found out that links should be related to projects, not files, since F12 works correctly. So I changed the links. This made F12 work (go to the source file instead of the description of the automatically created interface), and at the same time the error "do not access the file" disappeared during the build.
I got a "do not access the file" error while executing the release build. The links were on the Debug exe / dll version. I suspect this confusion is what causes the error in VS.
Tomas Andersson Aug 22 '11 at 9:30 a.m. 2011-08-22 09:30
source share