zoukankan      html  css  js  c++  java
  • MVC Chapter 12 Overview of MVC Projects

    MVC Projects Templates

    Empty 一个空 ASP.NET MVC 4 项目。
    Basic 基本 ASP.NET MVC 4 项目。
    Internet Application 带有使用窗体身份验证的帐户控制器的默认 ASP.NET MVC 4 项目。
    Intranet Application 使用 Windows 身份验证的默认 ASP.NET MVC 4 项目。
    Mobile Application 一个 ASP.NET MVC 4 项目,适用于带有使用窗体身份验证的帐户控制器的移动设备
    Web API 一个 ASP.NET Web API 项目。

    MVC Project Items 

    Folder/File               Description                                                                                                                                                  
    /App_Data  This folder is where you put private data, such as XML files or databases if you are using SQL Server Express, SQLite, or other file-based repositories.
    /App_Start This folder contains some core configuration settings for your project, including the definition of routes and filters and content bundles.
    /bin The compiled assembly for your MVC application is placed here, along with any referenced assemblies that are not in the GAC.
    /Content This is where you put static content such as CSS files and images.
    /Controllers This is where you put your controller classes.
    /Models This is where you put your view model and domain model classes, although all but the simplest applications benefit from defining the domain model in a dedicated project。
    /Scripts This directory is intended to hold the JavaScript libraries for your application. Visual Studio adds the libraries for jQuery and several other popular JavaScript libraries.
    /Views This directory holds views and partial views, usually grouped together in folders named after the controller with which they are associated.
    /Views/Shared This directory holds layouts and views which are not specific to a single controller.
    /Views/Web.config This is not the configuration file for your application. It contains the configuration required to make views work with ASP.NET and prevents views from being served by IIS and the namespaces imported into views by default.
    /Global.asax  This is the global ASP.NET application class. Its code-behind class (Global.asax.cs) is the place to register routing configuration, as well as set up any code to run on application initialization or shutdown, or when unhandled exceptions occur.
    /Web.config This is the configuration file for your application. We’ll explain more about its role later in the chapter.
    /Areas Areas are a way of partitioning a large application into smaller pieces.
    /App_GlobalResources These contain resource files used for localizing Web Forms pages.
    /App_LocalResources  
    /App_Browsers

    This folder contains .browser XML files that describe how to identify
    specific Web browsers, and what such browsers are capable of (whether
    they support JavaScript, for example).

    /App_Themes

    This folder contains Web Forms themes (including .skin files), which
    influence how Web Forms controls are rendered.

     


      


     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • 相关阅读:
    VMWare安装win10提示units specified don’t exist, SHSUCDX can’t install
    WinXP.Http.Post请求错误提示:基础连接已经关闭:发送时发生错误
    如何用PostMan请求WebApi
    无法解决 equal to 运算中 "Chinese_PRC_CI_AS" 和 "Chinese_PRC_CI_AS_WS" 之间的排序规则冲突 解决
    c# Winform PropertyGrid 实现下拉框 多选
    c# Winform GridControl 给列自动生成快捷操作按钮
    Tomcat启动报内存溢出错误:java.lang.OutOfMemoryError: PermGen space异常 解决
    Net Core 项目引用Exceptionless记录使用
    .Net 开源异常日志ExceptionLess搭建
    c# AutoMapper 扩展
  • 原文地址:https://www.cnblogs.com/xiao-hei/p/4029754.html
Copyright © 2011-2022 走看看