compiler-constructionvisual-studio-2005biztalkbiztalk2006r2

VS compiling BizTalk project cannot write to output directory


Sometimes (but not all of the time) when I compile my BizTalk project from with VS 2005, I receive the error:

Could not write to output file 'e:\...\obj\Development\whatever.dll' The process cannot access the file because it is being used by another process.

It's Visual Studio that's using it. I just close the IDE and re-open and it will work.

I have had this problem for a while now, I just live with it but it's becoming increasingly frustrating. Does anyone know what's causing this? It's not something specific to my project, it happens for all of my projects.


Solution

  • So I think there is a bug in VS 2005. This is on a project that references my whatever.dll. I needed to set copy local to true and it compiles ok. I can set back to false but it will eventually error again. Even though I want copy local to false as everything BizTalk must be in the GAC, setting it to true in my case causes no harm, so I just leave them like that.