ASP NET Core 2 with Full Framework

2020-06-02 16:42发布

问题:

I am unable to find any documentation, or examples, of an ASP.NET MVC Core app running under the full framework. It is supposed to be supported, but as I said I cannot find any documentation of how to configure a project for this, and have not been able to work it out myself.

Has anyone got this working and can provide advice/sample on what needs to be done?

回答1:

I am able to create/run ASP.NET Core 2.0 project with Full .NET framework 4.6.1, I followed below steps-

  1. Created new project using ASP.NET Core web application under Web category-

  1. On 2nd step, selected Web Application (Model-View-Controller)

  1. csproj looks like this- <TargetFramework>net461</TargetFramework>

My Environment is-

  • Visual Studio 2017 Community 15.3.3 version

  • .NET Core 2.0 SDK