我可以使用.NET 4.6创建ASP.NET Core MVC网站吗? [英] Can I create an ASP.NET Core MVC Website using .NET 4.6?

查看:90
本文介绍了我可以使用.NET 4.6创建ASP.NET Core MVC网站吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建ASP.NET Core MVC应用程序时,我有些困惑。我知道如果使用新发布的.NET Core 1.0框架,就可以创建ASP.NET Core MVC应用程序。

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.

我想知道是否可以使用.NET 4.6创建一个。我使用.NET 4.6创建了一个新的MVC应用程序,但是没有任何新功能(例如标签助手)可用。我需要引用某些库吗?这有可能吗?

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?

我应该声明,我真正想要的是能够在.NET 4.6 Web应用程序中使用新的Tag Helpers。

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.

推荐答案

您应该将ASP.NET Core 1.0应用创建为MVC,然后定位到.NET 4.6框架。这样,您就可以使用.NET 4.6创建ASP.NET Core MVC应用程序。

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.

您要尝试做的是构建&为.NET 4.6完整框架编译核心应用程序

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

这篇关于我可以使用.NET 4.6创建ASP.NET Core MVC网站吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆