asp.net-optimization Questions

3

Solved

I am working on a project ASP.net 4, MVC4(RC) using visual studio 11. I am trying to render an MVC4 Razor view that renders a partial view. I have some javascript required for my partial view. On m...

2

I have an asp.net mvc4. I have modules that are deployed as subdirectories within this application using IIS Virtual Directories and I need to reference files in these modules. These module dlls ar...

7

Solved

I'm trying to use the new bundling feature in a project I recently converted from MVC 3 to MVC 4 beta. It requires a line of code in global.asax, BundleTable.Bundles.RegisterTemplateBundles();, whi...
Accomplice asked 28/2, 2012 at 3:13

1

I understand and fully appreciate the new bundle wildcard {version} regex, as it will continue to pick up your script and style libraries even after updating, etc. The problem is that I cannot get ...
Gallantry asked 21/10, 2012 at 19:10

3

Solved

I have a site that dynamically generates Javascript. The generated code describes type-metadata and some server-side constants so that the clients can easily consume the server's services - so it's...

2

Solved

I've just migrated an ASP.NET MVC 3 project to MVC 4 / .NET 4.0, and installed NuGet package Microsoft.AspNet.Web.Optimization in order to support bundling and minification of CSS and JavaScript. I...

4

Solved

I'm using the ASP.NET MVC 4 bundling and minifying features in the Microsoft.AspNet.Web.Optimization namespace (e.g. @Styles.Render("~/content/static/css")). I'd like to use it in combination with...

3

I don't want to minify all the files I use in my ASP .NET MVC 4 solution. So for example I have this in my BundleConfig.cs: bundles.Add(new StyleBundle("~/CSS/bootstrap").Include( "~/Content/Boot...
Merilee asked 13/6, 2014 at 19:24

3

Solved

I am trying to use MVC4's new "bundling and minification". For IE conditional comments, I'm still doing it the old way: <!--[if lt IE 9]><link href=.../><![endif]--> or <!--[i...

2

Solved

I'm working with some dynamic bundling which adds CSS and JS files based on configuration. I spin up a new StyleBundle such that: var cssBundle = new StyleBundle("~/bundle/css"); Then loop thro...

3

Solved

With ASP.NET Bundling with a ScriptBundle function StartController($scope, $location, $rootScope) {} is transformed to function StartController(n,t,i) {} However, as I am using AngularJs, for...
Fyrd asked 23/10, 2012 at 14:27

2

Solved

I have a new ASP.NET MVC5 project. I don't want to use Microsoft bundling and minification so I removed the nuget package and the dependencies that I also don't want. I ensured there was nothing l...

3

Solved

I am trying to figure out why when I create a scriptbundle that is referencing files that are in an IIS VirtualDirectory under my main site's application folder, why it won't output anything....
Brookhouse asked 23/8, 2012 at 20:42

10

Solved

I am just trying out ASP.NET MVC 4 but I can't figure out how to disable Javascript/CSS minification feature. Especially for development environment this will help greatly on debugging. I would ima...
Haunted asked 21/2, 2012 at 6:18

10

I'm trying to use MVC4 bundling to group some of my less files, but it looks like the import path I'm using is off. My directory structure is: static/ less/ mixins.less admin/ user.less In use...
Depopulate asked 6/3, 2012 at 22:55

2

Solved

After manually upgrading an ASP.NET MVC project to MVC4 using these instructions, how do you then set up the new CSS and JavaScript asset bundling and minimization features of the ASP.NET Web Optim...

2

Solved

Hi I am currently using the asp.net MVC 4 rc with System.Web.Optimization. Since my site needs to be localized according to the user preference I am working with the jquery.globalize plugin. I wou...

3

Solved

I am trying to concat lots of .js files into a single one using Microsoft Web Optimization framework. Everything works, but within those files I have several that are already minified & uglifie...
Duroc asked 11/4, 2014 at 21:6

3

Solved

I am using the new System.Web.Optimization and have created a bundle like this: bundles.Add(New ScriptBundle("~/bundles/BaseJS").Include( "~/Resources/Core/Javascripts/jquery-1.7.1.js", "~/Resou...

7

Solved

I'm trying out the MVC4 System.Web.Optimization 1.0 ScriptBundle feature. I have the following configuration: public class BundleConfig { public static void RegisterBundles(BundleCollection bun...

2

Solved

As far as I can tell, the answer is no. The issue I'm seeing comes from the Include(params string[]) method in the System.Web.Optimization.Bundle class. Internally this invokes System.Web.Optimizat...

1

Solved

In Bundling and Minification, I've known that the bundler will move around certain known file types -- so that things like jQuery will be moved to the front. By default, when files are bundled ...

4

Solved

I'm testing my site with Google PageSpeed and YSlow and the bundles that i've created with MVC4 bundles aren't getting Gzipped (Compressing resources with gzip or deflate can reduce the number of ...
Fairway asked 27/8, 2012 at 8:9

2

Solved

How does @Scripts.Render("~/bundles/jquery") differ from just referencing the script from html like this <script src="~/bundles/jquery.js" type="text/javascript"></script> Are th...
Wongawonga asked 30/8, 2012 at 8:16

1

Solved

So I was persistently getting this error on the System.Web.Optimization package Could not load file or assembly 'System.Web.Optimization' or one of its dependencies. The located assembly's manifes...
Banuelos asked 2/10, 2013 at 9:55

© 2022 - 2024 — McMap. All rights reserved.