您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 年前
1234567891011121314151617181920212223242526272829
  1. using Microsoft.Extensions.Configuration;
  2. namespace HKCardManager
  3. {
  4. internal static class Program
  5. {
  6. /// <summary>
  7. /// The main entry point for the application.
  8. /// </summary>
  9. [STAThread]
  10. static void Main()
  11. {
  12. // To customize application configuration such as set high DPI settings or default font,
  13. // see https://aka.ms/applicationconfiguration.
  14. ApplicationConfiguration.Initialize();
  15. #if DEBUG
  16. var configer = (new ConfigurationBuilder()).AddJsonFile("options.json").Build();
  17. #else
  18. var configer = (new ConfigurationBuilder()).AddJsonFile("options.pro.json").Build();
  19. #endif
  20. HKLib.Configer.SaasRoute = configer["SaasRoute"];
  21. HKLib.Configer.MqAddress = configer["MQ"];
  22. HKLib.Configer.TenantId = configer["TenantId"];
  23. HKLib.Configer.AdRoute = configer["AdRoute"];
  24. HKLib.Configer.Admin = configer["Admin"];
  25. Application.Run(new Form1());
  26. }
  27. }
  28. }