I have a shared library that contains classes and controls that I use in all my projects. All my projects reference the dll in its bin\Release folder directly and the controls in my VS2012 toolbox also references that same dll.
However, if I increment the version on the shared library and compile it, whenever I try to draw the control from the toolbox onto a form in one of my existing projects, I get an error:
Failed to create component 'control_name'. The error message follows:
'System.Runtime.InteropServices.COMException (0x8004D745): A reference to the component 'library_name' already exists in the project.
The project has already been compiled with the latest version of the shared library and the toolbox is pointing to the correct location where the latest version of the shared library resides. If I remove all the shared library's controls from the toolbox and then add them again, then it works fine. Never had this issue with VS2010.
Any ideas how to get around this as it is quite a mission.
However, if I increment the version on the shared library and compile it, whenever I try to draw the control from the toolbox onto a form in one of my existing projects, I get an error:
Failed to create component 'control_name'. The error message follows:
'System.Runtime.InteropServices.COMException (0x8004D745): A reference to the component 'library_name' already exists in the project.
The project has already been compiled with the latest version of the shared library and the toolbox is pointing to the correct location where the latest version of the shared library resides. If I remove all the shared library's controls from the toolbox and then add them again, then it works fine. Never had this issue with VS2010.
Any ideas how to get around this as it is quite a mission.