Winforms IDE problem
-
I have a problem building a Solution. The solution contains 2 projects. Project1 is a DLL that supplies some business logic. Project2 is the Winforms Wizard. I have set the Project2 to be dependent on Project1 to build. Whenever I build the solution I get the following error: ------ The file 'Project1.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. ------ I am being driven slowly insane by this one. Please let me know if there is anything that I can do to handle this problem without having to shut down the IDE and destroy the obj directory for Project1. Thanks in advance for your time and help :sigh: Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA
-
I have a problem building a Solution. The solution contains 2 projects. Project1 is a DLL that supplies some business logic. Project2 is the Winforms Wizard. I have set the Project2 to be dependent on Project1 to build. Whenever I build the solution I get the following error: ------ The file 'Project1.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. ------ I am being driven slowly insane by this one. Please let me know if there is anything that I can do to handle this problem without having to shut down the IDE and destroy the obj directory for Project1. Thanks in advance for your time and help :sigh: Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA
I dont know the exact origin but whenever I have this error (very rarely) I switch the CopyLocal property of the reference to false. This way it doesnt copy the dll and thus doesnt have any conflicts :)
-
I have a problem building a Solution. The solution contains 2 projects. Project1 is a DLL that supplies some business logic. Project2 is the Winforms Wizard. I have set the Project2 to be dependent on Project1 to build. Whenever I build the solution I get the following error: ------ The file 'Project1.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. ------ I am being driven slowly insane by this one. Please let me know if there is anything that I can do to handle this problem without having to shut down the IDE and destroy the obj directory for Project1. Thanks in advance for your time and help :sigh: Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA
You need to remove the reference to Project 1 from Project 2 whenever you get this error. Then build Project1. restablish the reference and then build all. This should resolve the error. Cheers Ravindra Sadaphule MCSD.NET
-
You need to remove the reference to Project 1 from Project 2 whenever you get this error. Then build Project1. restablish the reference and then build all. This should resolve the error. Cheers Ravindra Sadaphule MCSD.NET
Ravindra, Thanks for the note. I tried that and it worked. I wonder if the condition will evolve again over time? What is the cause of this problem? Is this something that will be fixed in the IDE? Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA