Assembly is being used by another process
I've upgraded a WCF project running 3.5 vs2008 to .net 4.0 vs2010 and run into a problem. When compiling from vs2010 an assembly in my service implementation project is locked by devenv.exe (note no debugging - only compiling). The assembly is released when vs2010 is restarted and can be compiled once, after each restart. What I've tried to far: Insert PreBuild event to unlock the assembly removed assembly version wild card Disabled source stepping stopped windows search stopped IIS quit vs2010, removed sln.suo and bin/obj folder Read blog and SO posts for 3 days now :) Removed all references