在VS 2017 RC中创建ASP.NET Core Web App时缺少web.config吗? [英] web.config missing when creating ASP.NET Core Web App in VS 2017 RC?
问题描述
我注意到,在Visual Studio 2017 RC中创建新的ASP.NET Core Web App时,不会创建web.config文件.我的理解是,此文件包含重要的代码以促进IIS集成,这是我感兴趣的,因为我想在IIS上运行此应用程序.
I've noted that when creating a new ASP.NET Core Web App in Visual Studio 2017 RC, a web.config file is not created. My understanding was that this file contains important code to facilitate IIS integration, something that I am interested in, as I would like to run this application on IIS.
这是一个错误,还是我错过了过程中的某个步骤?
Is this a bug, or have I missed a step in the process?
推荐答案
在Visual Studio 2017中,在解决方案资源管理器中的项目"中右键单击->添加->新建项目->搜索配置"->添加Web配置文件.这会将web.config添加到您的项目中,并带有默认内容.
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.
这篇关于在VS 2017 RC中创建ASP.NET Core Web App时缺少web.config吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!