Using .Net Core project with Web Forms projects

拜拜、爱过 提交于 2021-01-25 10:39:30

问题


I am about to maintain an old Web application that has WebForms projects. I need to add a new project to the application. Can it in any way be an MVC Core project? I mean, can an MVC Core project co-exist in the same application with WebForms projects?


回答1:


ASP.NET Core does not support WebForms and the Microsoft Team has said they have no plans to port webforms to asp.net core. So no, you can't make an old webforms project into a asp.net core project.




回答2:


If you are hosting your Web Forms application in Internet Information Services (IIS) you can create a separate project for MVC Core stuff and achieve the effect of hiving one application by adding the MVC Core application as a sub application in IIS Manager.

  1. Open IIS Manager
  2. Right click the Web Forms site and select "Add Application..."
  3. Select the folder you published your Core MVC application to as the "Physical path".
  4. In the alias, enter the base path you want to use for the MVC stuff.


来源:https://stackoverflow.com/questions/49799110/using-net-core-project-with-web-forms-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!