Reputation: 51
When I am trying to buid on TFS build server I got the following error: Error CS2012: Cannot open 'xx.dll' for writing -- 'The process cannot access the file 'xx.dll' because it is being used by another process.'
Could anyone please help out with that?
Upvotes: 1
Views: 773
Reputation: 941
If you are developing a web application or anything of the like make sure that your server process (usually IISExpress or something) is not being run.
Kill all the processes that maybe consuming your compiled code.
Alternatively, you can download Lockhunter and see which program is locking that file.
Upvotes: 1