Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9144271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:13:43+00:00 2026-06-17T10:13:43+00:00

Regarding ASP.NET 4.5’s new System.Web.Optimization / Microsoft.AspNet.Web.Optimization: Can anyone explain the difference in the

  • 0

Regarding ASP.NET 4.5’s new System.Web.Optimization / Microsoft.AspNet.Web.Optimization:

Can anyone explain the difference in the use of bundling resources using the BundleConfig.cs class file as opposed to the bundle.config xml file?

I’ve seen some articles showing bundling both js and css in BundleConfig.cs, while others showing bundling js in BundleConfig.cs and css in bundle.config.

I guess I don’t understand #1) why you wouldn’t just do them both one particular way for simplicity – and #2) why anyone would prefer to hard-code resources like that in a class file? It seems like a much more dynamic approach to just put them in an xml file that can be changed on-the-fly if necessary.

It seems like more articles actually lean toward using BundleConfig.cs than anything else. Is there some particular pro or con that encourages this?

Also, if there is any real documentation on System.Web.Optimization, I would love to know the location (because I sure can’t find it).

Thanks-

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:13:45+00:00Added an answer on June 17, 2026 at 10:13 am

    this documentation explains it all better than I ever could

    http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification

    One of the nicest things is this:

    The bundling framework follows several common conventions such as:

    Selecting “.min” file for release when “FileX.min.js” and “FileX.js”
    exist.

    Selecting the non “.min” version for debug. Ignoring “-vsdoc”
    files (such as jquery-1.7.1-vsdoc.js), which are used only by
    IntelliSense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Regarding the ASP.NET Universal Providers (System.Web.Providers), do they automatically offer the retry logic when
Does anyone have links to tutorials regarding the new IModelBinder in asp.net mvc beta?
Regarding ASP.NET's GridView server control: Can I bind to a datasource in the code-behind,
I use asp.net + MVC1.0 and in a web-page I have several forms, within
This is regarding ASP.NET MVC. Let's say I have a web site that is
One of the common questions asked regarding ASP.NET MVC is why should you use
Is there any compromise regarding resources, if I use bound controls on my asp.net
I am new to ASP.NET MVC and I have a question regarding viewing entity
How can I get the current view name regarding to current URL, in asp.net
Quick question regarding the use of Singleton lifestyle in Windsor, and Asp.Net MVC. If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.