Class library licensing problem
Posted: Wed 24 May 2006 19:24
I've run into some undesireable behavior with the 2.5 Pro license and Enterprise Library 2.0. Maybe someone can explain. Here is my scenario:
Class Library A: directly uses the Corelab product, has licenses.licx. Registered in the GAC.
Class Library B: calls into class library A, does not use the Corelab product directly. Registered in the GAC.
Test Executable: Has a project reference to Class Library B. Calls class library B. Has a licenses.config.
This results in a licensing error, unless I also add a licenses.licx to class library B. This should not be required since it does not use the CoreLab product. This creates an undesirable coupling between class libraries A and B. For exampe, if class library B is business logic, it should not have to have awareness that class library A (data access layer) is using postgres or your product.
One background piece here is I have rebuilt your Enterprise Library project to be signed, and put it in the gac.
Please help me find a solution for this. Thanks.
Class Library A: directly uses the Corelab product, has licenses.licx. Registered in the GAC.
Class Library B: calls into class library A, does not use the Corelab product directly. Registered in the GAC.
Test Executable: Has a project reference to Class Library B. Calls class library B. Has a licenses.config.
This results in a licensing error, unless I also add a licenses.licx to class library B. This should not be required since it does not use the CoreLab product. This creates an undesirable coupling between class libraries A and B. For exampe, if class library B is business logic, it should not have to have awareness that class library A (data access layer) is using postgres or your product.
One background piece here is I have rebuilt your Enterprise Library project to be signed, and put it in the gac.
Please help me find a solution for this. Thanks.