Fix namespace bug when use the assembly loader

Fix namespace bug when use the assembly loader
This commit is contained in:
Namhyeon, Go 2025-12-08 01:53:49 +09:00
parent 28776d7cad
commit 6839b8edd1

View File

@ -130,6 +130,7 @@ namespace WelsonJS.Launcher
Type loaderType = phantomAsm.GetType("Catswords.Phantomizer.AssemblyLoader", true);
loaderType.GetProperty("BaseUrl")?.SetValue(null, GetAppConfig("AssemblyBaseUrl"));
loaderType.GetProperty("LoaderNamespace")?.SetValue(null, typeof(Program).Namespace);
loaderType.GetProperty("AppName")?.SetValue(null, "WelsonJS");
loaderType.GetMethod("Register")?.Invoke(null, null);