title: MVC 6 install as a Windows Service (ASP.NET Core 1.0.0)
body: <p><strong>UPDATE - 26th July 2016</strong></p>
  
  <p>I have added the solution to this in <code>ASP.NET Core 1.0.0</code> in the answers below.</p>
  
  <hr>
  
  <p>I have created a simple MVC 6 app and have included the Microsoft.AspNet.WebListener library so I can host outside of IIS. </p>
  
  <p>From project.json:</p>
  
  <pre><code>"dependencies": {
      "Microsoft.AspNet.Server.WebListener": "1.0.0-beta4",
      "Microsoft.AspNet.Mvc": "6.0.0-beta4"
  },
  
  "commands": {
      "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5000"
  }
  </code></pre>
  
  <p>When I publish this I can run the web.cmd file and get the site running in a console window. Great! </p>
  
  <p>But in OWIN you can use TopShelf to launch your web app from a Console Application. This can then be built as an executable and installed as a Windows Service.</p>
  
  <p>Is there a way to do this with an ASP.NET 5 MVC 6 web app?</p>