zoukankan      html  css  js  c++  java
  • Visual Studio 2013 支持MVC3不完善,Razor智能提示不完整或者不提示

    以下只是针对MVC3.

    前天试用Orchard 1.8,用VS2013新建C#类库项目(ClassLibrary project),然后新建Views文件夹,新建cshtml,然后引用MVC3的相关dll(System.Web.Mvc.dll(3版本),System.Web.WebPages.dll(1版本)),然后增加web.config来增加对Razor 的智能提示,可是没出现提示,然后从orchard1.8其他项目把web.config复制过来,不行,然后重新引用dll.也不行,或者出现了

    [FEA3QVD~~%64M`_2PL5IZD

    网上搜了很久,没找到合适的.

    后面折腾很久,从VS2010新建个MVC3,然后再用VS2013打开,提示了以下文字

    ASP.NET MVC 3 projects have limited functionality in Visual Studio 2013. Commands such as Add Controller, Add View, Add Area, and Go to View/Controller are not available. Intellisense for Razor (CSHTML and VBHTML) files is limited to HTML markup. Please see http://go.microsoft.com/fwlink/?LinkID=317645 for additional information on how to upgrade an MVC 3 project.

    原来是VS2013对MVC3支持不完善.Razor 智能提示有限制.

    然后在VS2013,智能提示出来了一部分.正常应该是

      按@Html.l就提示3个,label,labelfor,labelformodel.可是在VS2013默认就只提示了Label

    最后解决方法用了resharper 8....

    image

  • 相关阅读:
    c基础
    一维数组,字符数组
    循环结构
    分支结构
    结构体
    Python简介和入门
    Python基础(一)
    Markdown 基础学习
    PyCharm 专业版安装
    Python基础(二)
  • 原文地址:https://www.cnblogs.com/laxknight/p/3647122.html
Copyright © 2011-2022 走看看