I am using a ComponentOne FlexGrid, it automatically registered in its license
C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2, Version=2.6.20122.716, Culture=neutral, PublicKeyToken=79882d576c6336da
I also use a custom control that inherits the C1FlexGrid, but on run-time it tries to register
DataTree.C1FlexDataTree, fpstudio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
in the license file, which ultimately creates an error:
Error 51 Unable to resolve type 'DataTree.C1FlexDataTree, fpstudio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:_DEVELOPMENT_FP_DRAFT12\COMPONENT1_WORKING_MERGED\fpstudio\Properties\licenses.licx 3 Freepour Studio
How can I tell this class not to try to license the control as it already is inherited and is licensed itself. I have already removed [LicenseProvider()]
from the DataTree Class
I think the only way to do it is to edit licenses.licx file manually and remove DataTree.C1FlexDataTree from there. Note, VS edits licenses.licx file automatically when you work with forms and controls in designer. If you close all designer windows and edit licx file manually, your changes will be saved and you can avoid issues. The most common issue with licx files is build error after you updated controls to other version. To avoid it, you can just remove version and public key token information from this file at all. After that it would work with any version. I.e. you licenses.licx file content should look like this:
(or without DataTree.C1FlexDataTree line). Note, if you open designer to do some changes, VS can edit this file again. There is no way to prevent that. You'll have to edit file once more time.