When I try to deploy my .NET Assembly, I get the following error when trying to compile the generated C# code:
[CLASS_NAME]_[OBJECT_NAME]_wrapper.cs(1543,23): error CS0051:
Inconsistent accessibility: parameter type 'ref c__[STRUCTURE_NAME] []' is less accessible than method '[NAMESPACE].[OBJECT_NAME].[METHOD_NAME]([NAMESPACE].[STRUCTURE_2_NAME] [], string, ref c__[STRUCTURE_NAME] [], ref string)'
[STRUCTURE_NAME] when I looked at the generated C# was marked as internal, but the method was public. Which makes sense, that's what caused the Inconsistent accessibility error.
However, when I removed the offending method from my assembly and looked at the other structures in the assembly via the Visual Studio Object Explorer, those structures were public.
Is there a way within PowerBuilder to force those structures to be public to enable the C# to compile?
Migrating this would be quite the pain, but it's better than just not being able to deploy the assembly.
Thanks