Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

29 linhas
1.0 KiB

  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. }