Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

bundle.config in mvc is missing

using System.Web;
using System.Web.Optimization;

namespace CodeRepository.Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));
        }
    }
}
Comment

bundle.config in mvc is missing

using System.Web.Optimization;

protected void Application_Start()
{
    AreaRegistration.RegisterAllAreas();
    RouteConfig.RegisterRoutes(RouteTable.Routes);
    BundleConfig.RegisterBundles(BundleTable.Bundles);
}
Comment

bundle.config in mvc is missing

Install-Package Microsoft.AspNet.Web.Optimization
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# video to frames 
Csharp :: contains duplicate 
Csharp :: use slider in unity 
Csharp :: c# get property type of list 
Csharp :: c# today without time 
Csharp :: c# check if char is string 
Csharp :: c# struct 
Csharp :: if debug c# 
Csharp :: c# join strings with comma 
Csharp :: unity set sprite image from script 
Csharp :: c# wpf image source from resource programmatically 
Csharp :: what is a model in c# 
Csharp :: how to create a variable in c# 
Csharp :: c# wpf get clipboard text 
Csharp :: c# create excel file 
Csharp :: c# string to bool 
Csharp :: char array 
Csharp :: if c# 
Csharp :: get both item and index in c# 
Csharp :: c# get logged on user name 
Csharp :: json serialization 
Csharp :: pause unity game 
Csharp :: c# chunk array 
Csharp :: how to turn on/off Particle System unity 
Csharp :: XMLWriter write xml C# 
Csharp :: unity camera fade to black 
Csharp :: unity soft body 
Csharp :: how to see if a number is even c# 
Csharp :: count the number of notes in a given amount c# 
Csharp :: list of function in c# 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =