Hello there,
I have one eCLR Main Project („Project A“) (eCLR 3.3 Profile) which references another project of the same type (eCLR 3.3 Profile) („Project B“).
I need Project B as a Class Library for reusability purposes (reusable structs/functions).
My problem is that when I move a typical struct from „Project A“ to „Project B“ and I compile the solution then I get this error message:
Program.cs(25,10,25,20): error CSADD007: The type ‚testStruct‘ of the field(s) ‚testStruct‘ has to be compatible to an IEC 61131-3 type. All possible types are listed in the Readme.txt of the VS Template. (CSADD007) (https://github.com/PLCnext/PLCnext_CLI_CSharp_CodeAnalyzer/blob/main/Rules/CSADD007.md)Program.cs(25,10,25,20): error CSADD013: The field type ‚testStruct‘ of the field(s) ‚testStruct‘ has an incorrect IEC 61131-3 type in the DataType attribute. The type is compatible to the IEC 61131-3 types: No compatible type found!. (CSADD013) (https://github.com/PLCnext/PLCnext_CLI_CSharp_CodeAnalyzer/blob/main/Rules/CSADD013.md)
The exact same struct was working correctly when it was placed inside Project A.
I have also referenced Project B correctly into Project A.
Any thoughts on this?