Hi,
Thank you for posting in MSDN forum.
It probably means that the file bin\A.dll is locked for writing by another process (possibly another instance of Visual Studio).
You should try closing down all instances of VS and any other programs that could be attempting to read that file, then re-open Visual Studio and try to build again.
If that doesn't work then you can try using Process Explorer
I solved this problem by deleting the contentious files from bin folder and rebuilding the project.
Another option: Please follow these steps below,
- Go to “bin" folder. In some cases it may be "\bin" - one level up of the current.
- View the properties of the dll file and see whether it is marked as "Read Only". If read only check box checked, uncheck it.
- This happens if the project is under any source control system.
I look forward to receiving your test results.
Thanks, If my reply is helpful please mark as answer or vote as helpful.