References in Class Library
-
Hi, I have developed a class library to be used in a Windows project as well as a web project. Because I am developing plugins for a 3rd party CMS, the web project requires me to add some references to the class library so that I can comunicate with the CMS from my plugins. The back office Windows application, however, doesn't have the referenced CMS files available so the application fails. Do I need to copy all the referenced files to each machine where I want to use the class library, even though the Windows app doesn't require them (none of the class library procedures called from the Windows app uses the referenced CMS files). Or is there some way I can exclude them when compiling the class library for the Windows App? Thanks for your time.
-
Hi, I have developed a class library to be used in a Windows project as well as a web project. Because I am developing plugins for a 3rd party CMS, the web project requires me to add some references to the class library so that I can comunicate with the CMS from my plugins. The back office Windows application, however, doesn't have the referenced CMS files available so the application fails. Do I need to copy all the referenced files to each machine where I want to use the class library, even though the Windows app doesn't require them (none of the class library procedures called from the Windows app uses the referenced CMS files). Or is there some way I can exclude them when compiling the class library for the Windows App? Thanks for your time.
If the Windows app does not use the portion of the common library that interacts with the CMS system, I would move the portion that does interact with the CMS into another library. Then you would end up with something like the following:
Windows app --> common library <-- Web project --> CMS plugin
-
If the Windows app does not use the portion of the common library that interacts with the CMS system, I would move the portion that does interact with the CMS into another library. Then you would end up with something like the following:
Windows app --> common library <-- Web project --> CMS plugin
OK Gideon that's great, thanks for your time and advice :)