如何获得MVC 6项目的项目类型? [英] How to get the project type of MVC 6 project?

查看:71
本文介绍了如何获得MVC 6项目的项目类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为MVC项目使用上下文菜单。我正在使用项目的值来启用加载项。对于MVC3,MVC4和MVC5,它的工作正常。但是MVC 6(ASP.NET 5)项目在项目文件(.xproj)中没有价值,而且我也无法使用GetAggregateProjectTypeGuids()方法获取值,该方法可用于较旧的MVC项目。有没有其他方法可以找到项目类型?我需要找到项目是否是MVC6来更改加载项可见​​性。

解决方案

你好,



你检查过这个吗?



http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6 [< a href =http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6target =_ blanktitle =New Window> ^ ]



也许这可以帮助您解决问题。



最好的问候!

I'm using a context menu for MVC projects. I'm using value of the project to enable the add-in. For MVC3,MVC4 and MVC5 its working fine. But MVC 6 (ASP.NET 5) project doesnt have value in the project file (.xproj) and also I cant get the value using the method GetAggregateProjectTypeGuids() which can be used for older MVC projects. Is there any other way to find the project type? I need to find whether the project is MVC6 or not to change the add-in visibility.

解决方案

Hello,

Have you checked this?

http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6[^]

Maybe this can help you with your issue.

Best Regards!


这篇关于如何获得MVC 6项目的项目类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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