$ mkdir HelloWorldAspNetCore $ cd HelloWorldAspNetCore
$ dotnet new -t web Created new C# project in /home/atameldev/HelloWorldAspNetCore.
public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup() .UseUrls("http://*:8080") .Build(); host.Run(); }
$ dotnet restore … log : Restore completed in 16298ms.
$ dotnet run … Now listening on: http://*:8080 Application started. Press Ctrl+C to shut down.
runtime: python27 api_version: 1 threadsafe: yes handlers: - url: .* script: main.app libraries: - name: webapp2 version: "2.5.2"
#!/usr/bin/env python import webapp2 class MainHandler(webapp2.RequestHandler): def get(self): self.response.write('Hello world!') app = webapp2.WSGIApplication([ ('/', MainHandler) ], debug=True)