Why is System.Web.Mvc not listed in Add References?

后端 未结 14 2594
日久生厌
日久生厌 2020-12-12 23:25

Using C#, Visual Studio 2010.

There is a namespace called System.Web.Mvc documented on MSDN. The documentation for all the types in that namespace says that they are

14条回答
  •  抹茶落季
    2020-12-12 23:39

    I believe you'll find the MVC assembly is referenced in the web.config file, not in the project itself.

    Something like this:

    
      
        
        
        
      
    
    

    To respond to your comment;

    The best answer I can give is from here:

    The add element adds an assembly reference to use during compilation of a dynamic resource. ASP.NET automatically links this assembly to the resource when compiling each code module.

提交回复
热议问题