Closed rocka closed 4 months ago
it works after reverting https://github.com/studyzy/imewlconverter/commit/316e353e78e647f266f2fd0f7cffb5fb7143402e#diff-20f08577eba7518bdb0b189dc884940a1f49c638a51935450ba4ad80a365774f
diff --git a/src/ImeWlConverterCore/ConsoleRun.cs b/src/ImeWlConverterCore/ConsoleRun.cs
index 89b05d1..4d360c9 100644
--- a/src/ImeWlConverterCore/ConsoleRun.cs
+++ b/src/ImeWlConverterCore/ConsoleRun.cs
@@ -394,7 +394,7 @@ private void LoadImeList()
cbxImportItems.Add(cbxa);
imports.Add(
cbxa.ShortCode,
- Type.GetType(type.FullName) as IWordLibraryImport
+ assembly.CreateInstance(type.FullName) as IWordLibraryImport
);
}
if (type.GetInterface("IWordLibraryExport") != null)
@@ -403,7 +403,7 @@ private void LoadImeList()
cbxExportItems.Add(cbxa);
exports.Add(
cbxa.ShortCode,
- Type.GetType(type.FullName) as IWordLibraryExport
+ assembly.CreateInstance(type.FullName) as IWordLibraryExport
);
}
}
version: https://github.com/studyzy/imewlconverter/commit/9bb95ef7ab950224e89f3199f0167addaf409ff9 dotnet: 8.0.106 platform: linux-x64
git bisect result: