Duplication of Custom Type Shortcuts of externally defined Enums

Posts   
 
    
Posts: 4
Joined: 23-Nov-2016
# Posted on: 30-Dec-2017 12:26:30   

I'm using LLBLGen v5.3.0.

I've written some enumerations and compiled them into a .dll file. Then I've written a .typeimports file and placed both the .dll and .typeimports files into a directory. I set that directory path in "LLBLGen -> Project Settings -> Conventions -> Entity Model -> General -> Additional type converter folder".

Then, I right clicked model root and "Re-scan for TypeConverters and .typeimports Files". I can find all enumerations on "LLBLGen -> Project Settings -> Conventions -> Entity Model -> Type Shortcuts -> Custom Type Shortcuts" page. I can assign them to specific fields and code generation works well.

The problem is, whenever I regenerate the source code, custom type shortcuts duplicates themselves by appending sequential numbers (1, 2, 3, ...) to shortcut names and emptying their "Type name" on "Custom Type Shortcuts" page in "Project Settings".

Kindly find attached herewith a screenshot of "Custom Type Shortcuts" settings page for your reference. I've to delete these duplicates and then re-assign entity fields to enumeration types manually every time I generate source code.

Is this the default behavior of designer? Or I'm doing it wrong? Is it possible that designer detects already added shortcuts and not duplicate them?

Thanking you anticipation.

Attachments
Filename File size Added on Approval
llblgen_testing_extern_enums.png 100,816 30-Dec-2017 12:26.45 Approved
Posts: 4
Joined: 23-Nov-2016
# Posted on: 30-Dec-2017 18:36:04   

I've figured it out! By signing the .dll, which contains enumerations, with strong name key and referring signed .dll in .typeimports file, the problem vanished.

I need to know the logic behind this behavior. Otis or other member help explain this.

Thank you for developing such a nice tool.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Jan-2018 07:50:06   

Could you share us the two .typeimports files? (the one which works and the other) Also, if possible, a .zip file with just one enum and its .net project which reproduces the problem.

David Elizondo | LLBLGen Support Team