daryllabar / DLaB.Xrm.XrmToolBoxTools

Plugins for the XrmToolBox
MIT License
76 stars 69 forks source link

Cannot implicitly convert type ...StatusCode to 'Microsoft.Xrm.Sdk.OptionSetValue' #471

Open bwmodular opened 9 months ago

bwmodular commented 9 months ago

Sorry Daryl, I've been trying to work these v1 -> v2 upgrade issues myself but keep getting stuck.

Tool and Version EarlyBoundGenerator V 2.2023.12.14

Describe the bug Following an upgrade from EBG v1 to EBG v2, I'm getting a compilation error on code which was developed with EBG v1.

Using v2, with the v1 settings unchanged, I now get compilation errors on both State and Status Code Option Set Values: image

image

Changing the "Use Enum for State Codes" setting to True fixes the issue for State but not Status Code:

image

Any ideas what I should do to fix this?

daryllabar commented 9 months ago

Don't apologize. The only way I'm going to fix any of the issues, is if people bring them up!

So in V1, it was creating Choice Column properties as enums, but in V2 it is creating it generating as OptionSets?

daryllabar commented 9 months ago

I believe you gave me your metadata xml file already for V2. Did you give me your V1 xml config? I'd like that as well so I can make sure that what gets generated before and after match.

bwmodular commented 9 months ago

I've uploaded the v1 & v2 settings files below. Do you need anything else? Thanks BEN.EarlyBound.Settings.zip