在 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 应用程序时,不会创建 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 中,在解决方案资源管理器中右键单击项目 -> 添加 -> 新建项目 -> 搜索config" -> 添加 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屋!