LogoExtension.cs 981 B

1234567891011121314151617181920212223242526
  1. using Microsoft.Extensions.DependencyInjection;
  2. using System;
  3. namespace Admin.NET.Core
  4. {
  5. /// <summary>
  6. /// logo显示
  7. /// </summary>
  8. public static class LogoExtension
  9. {
  10. public static void AddLogoDisplay(this IServiceCollection services)
  11. {
  12. Console.ForegroundColor = ConsoleColor.Blue;
  13. Console.WriteLine(@" ___ _ _ _ _ _____ _____
  14. / _ \ | | (_) | \ | || ___|_ _|
  15. / /_\ \ __| |_ __ ___ _ _ __ | \| || |__ | |
  16. | _ |/ _` | '_ ` _ \| | '_ \ | . ` || __| | |
  17. | | | | (_| | | | | | | | | | |_| |\ || |___ | |
  18. \_| |_/\__,_|_| |_| |_|_|_| |_(_)_| \_/\____/ \_/ ");
  19. Console.ForegroundColor = ConsoleColor.Red;
  20. Console.WriteLine(@"源码地址: https://gitee.com/zuohuaijun/Admin.NET");
  21. Console.ForegroundColor = ConsoleColor.Yellow;
  22. Console.WriteLine(@"让.NET更简单、更通用、更流行!");
  23. }
  24. }
  25. }