Thursday, July 1, 2021

Using System.Collections.Generic.List of .Net as a parameter doesn't work well with X++ compiler

When using the .net dll in X++, I faced an error "Method 'MethodName(System.Collections.Generic.List`1, System.Boolean)' is not found on type 'ClassNameInDll'.
It was because the X++ compiler cannot parse the System.Collections.Generic.List of .Net in the parameter of the method "MethodName". In order to bypass this error, in X++ try to use "System.Collections.IList" or System.Collections.IEnumerable instead of  System.Collections.Generic.List


No comments:

Post a Comment

Import an ISV licese file into Dev environment using Power Shell

 K:\AOSService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir K:\aosservi...