There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Importing of Custom Type Initializers fails
The source code at:
Microsoft.Research.ScientificWorkflow.TridentComposer.ImportActivityProxy line 121
indicates that an attempt is made to import custom type initializers found in referenced assemblies when activities from said assemblies are imported.
This call is made after the assemblies have been imported into the registry.
One of the first lines of code which imports the custom type initializers at:
Microsoft.Research.ScientificWorkflow.TridentComposer.ActivityComposer line 694
"if (!ActivityComposer.CanContinueWithImport(references, assemblyPath))"
will almost always evaluate to True and cause the custom type initializer import logic to exit before importing the initializers contained within the assembly. This means custom type initializers from that assembly can never be imported. The line calls a method
which checks to see if the assemblies have been imported into the registry (and they have because the code to import the activities was run just prior).
I have some thoughts on a possible fix should you concur with my assessment.
Thank you for your time.