When I create plc enum structure (or any structure) and its instance for example:
TYPE myEnum :
(
Unknown,
Available,
UnAvailable
);
END_TYPE
myEnum_instance : myEnum;
Compiler will generate myEnum.cs file. That is perfectly okay.
But when I completely remove my myEnum.st structure from PLC program, C# compiled file myEnum.cs is still present and is causing errors.
It would be nice, if compiler removes unnecessary structures automatically.