web.config missing when creating ASP.NET Core Web App in VS 2017 RC?

In Visual Studio 2017, right click in Project in Solution Explorer -> Add -> New Item -> Search for "config" -> Add Web Configuration File. This will add web.config in your project with default stuff.

enter image description here


For Asp.Net Core 2.0, and you still need to have web.config you can add a Web configuration item template. You can use that like change the max file upload limit etc.

The web.config file is generated when you are publishing the project.


In ASP.NET Core 1.1 Web project that created by Visual Studio 2017, there is no more web.config file by default. If you need that file, you can create that file by yourself. For example:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
  </system.webServer>
</configuration>