- Drew Buchanan
- PowerBuilder
- Monday, 1 July 2019 07:12 PM UTC
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?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.