Can I create an ASP.NET Core MVC Website using .NET 4.6?

末鹿安然 提交于 2019-12-12 01:39:38

问题


I'm a little confused when it comes to creating ASP.NET Core MVC applications. I know I can create an ASP.NET Core MVC application if I used the newly released .NET Core 1.0 framework.

I was wondering if I could create one using .NET 4.6 though. I created a new MVC application using .NET 4.6 but none of the new features, such as tag helpers, are available. Do I need to reference certain libraries? Is this even possible to do?

I should state that what I'm really after is being able to use the new Tag Helpers in a .NET 4.6 web application.


回答1:


You should be creating ASP.NET Core 1.0 app as MVC then target to .NET 4.6 framework. In this way you can create ASP.NET Core MVC application with .NET 4.6.

What your trying to do is build & compile core app for .NET 4.6 full framework



来源:https://stackoverflow.com/questions/38794738/can-i-create-an-asp-net-core-mvc-website-using-net-4-6

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