erandros

Program.cs

Oct 19th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Mvc;
  6. using System.IO;
  7. using Microsoft.AspNetCore.Hosting;
  8.  
  9. // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
  10.  
  11. namespace viper
  12. {
  13.     public class Program
  14.     {
  15.         public static void Main(string[] args)
  16.         {
  17.             var host = new WebHostBuilder()
  18.                 .UseKestrel()
  19.                 .UseContentRoot(Directory.GetCurrentDirectory())
  20.                 .UseIISIntegration()
  21.                 .UseStartup<Startup>()
  22.                 .Build();
  23.  
  24.             host.Run();
  25.         }
  26.     }
  27. }
Add Comment
Please, Sign In to add comment