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

Program.cs 498B

123456789101112131415161718192021
  1. using System.IO;
  2. using Microsoft.AspNetCore.Hosting;
  3. namespace WebApiWebSem
  4. {
  5. public class Program
  6. {
  7. public static void Main(string[] args)
  8. {
  9. var host = new WebHostBuilder()
  10. .UseKestrel()
  11. .UseUrls("http://0.0.0.0:8080")
  12. .UseContentRoot(Directory.GetCurrentDirectory())
  13. .UseIISIntegration()
  14. .UseStartup<Startup>()
  15. .Build();
  16. host.Run();
  17. }
  18. }
  19. }