partially related to ROSDK .Net [8.2.89.1153] - Trouble with derived and/or abstract services
Steps:
- open a RODL in the ServiceBuilder
- create a new Service “BaseService”
- create a new Service “DerivedService” and set “BaseService” as it’s ancestor
- close and reopen the ServiceBuilder
- delete “BaseService” from RODL
- take a look into the “DerivedService” properties >> it’s ancestor assignment “BaseService” is automatically cleaned up
- validate the RODL >> “invalid or undefined ancestor type ‘BaseService’”
- close & reopen the RODL giving the same validation error, the ancestor field of “DerivedService” is still empty in the ServiceBuilder
only fixable by opening the RODL in a text editor and deleting the “Ancestor attribute” of “DerivedService” manually
- after deleting the ancestor attribute >> verfiy OK
- delete the BaseService_impl.cs and BaseService_invk via solution explorer
- reopen the ServiceBuilder
- create another Service “AnotherBaseService” and set it as DerivedService’s Ancestor
- close SB and try to build
Err: Type or Reference BaseService not found
cause: the derived class in “DerivedService_impl.cs” is still derived from “BaseService” instead from “AnotherBaseService”.