Localization 如何为本地化创建和加载resource.dll?

Localization 如何为本地化创建和加载resource.dll?,localization,resources,Localization,Resources,我正在开发一个函数来在运行时转换菜单。 从下面的代码生成了一个dll,但我不知道如何使用它。 我编译时已经嵌入了一些资源dll文件,并且运行良好 生成*.resx文件 using (ResXResourceWriter writer = new ResXResourceWriter(fullPath)) { writer.AddResource("Key1", "Test1"); writer.AddResource("K

我正在开发一个函数来在运行时转换菜单。 从下面的代码生成了一个dll,但我不知道如何使用它。 我编译时已经嵌入了一些资源dll文件,并且运行良好

  • 生成*.resx文件

     using (ResXResourceWriter writer = new ResXResourceWriter(fullPath))
     {
         writer.AddResource("Key1", "Test1");
         writer.AddResource("Key2", "Test2");
         writer.AddResource("Key3", "Test3");
         writer.Generate();
     }
    
  • 从*.resx生成*.resource文件

     ProcessStartInfo info1 = new ProcessStartInfo("ResGen.exe", fullPath)
     Process.Start(info1);
    
  • 从*.resource生成dll

     ProcessStartInfo info2 = new ProcessStartInfo("al.exe", $@"/t:lib /link:{path}{resourcefileName}.resources /culture:en /out:{resourcefilepath}.resources.dll");
     Process.Start(info2);
    
  • 现在,如何加载此结果