Simple usage of ASP. NET MVC combres

Source: Internet
Author: User

First step: Add a NuGet Package

"1" After adding the NuGet package, will automatically add the configuration file in the Webconfig (do not change)

<section name= "dotless" type= "dotless. Core.configuration.DotlessConfigurationSectionHandler, dotless. Core "/><section name=" Combres "type=" combres.configsectionsetting, Combres "/></configsections>   <namespaces>        <add namespace= "Combres"/> <add namespace= "Combres.mvc"/></namespaces ><combres definitionurl= "~/app_data/combres.xml"/>

"2" after adding the NuGet package, a registration is added to the Global.asax file

Step Three: Combres.xmls

<?xml version= "1.0" encoding= "Utf-8"?><!--This file contains basic settings needed for most web apps.  For full combres settings (with explanation), refer to the sample definition File:combres_full_with_annotation.xml Also,  Refer to Combres ' documentation:http://combres.codeplex.com/documentation--><combres xmlns= ' urn:combres ' > <filters> <filter type= "Combres.Filters.FixUrlsInCssFilter, combres"/> </filters> <resourceset                S url= "~/combres.axd" defaultduration= "defaultversion=" 201601081834 "//version number default to Auto                Defaultdebugenabled= "false"//false after publishing, local debug with True defaultignorepipelinewhendebug= "true" Localchangemonitorinterval= "remotechangemonitorinterval=" > <!--public c Ss-self Plugins--<resourceset name= "maincss" type= "CSS" > <resource path= "~/styles/main.css" mode= "dynamic "Forwardcookie=" false "/> </resourceset> <resourceset name= "Managejs" type= "JS" > <resource path= "~/scripts/manage/manage.js" mod e= "Dynamic" forwardcookie= "false"/> </resourceSet> <resourceset name= "Loginjs" type= "JS" > <r Esource path= "~/scripts/login/login.js" mode= "dynamic" forwardcookie= "false"/> </resourceSet> </ Resourcesets></combres>

  

Fourth Step: Page Add Reference

Simple usage of ASP. NET MVC combres

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.