Deploying an ASP.NET Core web app to Azure with Visual Studio Code

According to http://code.visualstudio.com, Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free, and available on your favorite platform—Linux, macOS, or Windows.

After installing Visual Studio Code from http://code.visualstudio.com, we can add the Azure App Service Tools extension to it:

  1. We need to add a web.config file before publishing the project to Azure with the following content:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="aspNetCore" ...

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.