Failed to copy "obj \ Debug \ {project} .dll" to "bin \ {project} .dll"

Visual Studio Express 2013 for the Internet often throws this error when I try to start my project, and the only permission I found is to stop and restart Visual Studio or (sometimes) completely restart Windows. What could cause something like that?

Dump full error

Error   19  Could not copy "obj\Debug\HobbsEventsMobile.dll" to "bin\HobbsEventsMobile.dll". Exceeded retry count of 10. Failed.    HobbsEventsMobile
Error   20  Unable to copy file "obj\Debug\HobbsEventsMobile.dll" to "bin\HobbsEventsMobile.dll". The process cannot access the file 'bin\HobbsEventsMobile.dll' because it is being used by another process.   HobbsEventsMobile
+4
source share
4 answers

Create a preliminary assembly in your project by going to the project properties (right-click on the project in the solution explorer and select the "Properties" parameter), select the "Events" tab. Add this code:

if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"

https://social.msdn.microsoft.com/Forums/en-US/5b71eb06-5047-483d-8fd3-b75c102d41e9/unable-to-copy-from-objdebug-to-bindebug?forum=Vsexpressinstall&prof=required

+2

:

cannot access the file 'bin\HobbsEventsMobile.dll' because it is being used by another process

, dll . , ? , Process Explorer Find dll - , dll.

: Ctrl-F5? , , dll .

+2

, , , DLL . , . .

+1

1-

2- select property Page

3-make , , That

enter image description here

+1

Source: https://habr.com/ru/post/1539483/


All Articles