Updating ASP.NET MVC Nuget Packages

Here is an error and solution I got today when updating Nuget packages for ASP.NET MVC.

Error:

‘System.Web.Optimization.BundleCollection’ does not contain a definition for ‘RegisterTemplateBundles’ and no extension method ‘RegisterTemplateBundles’ accepting a first argument of type ‘System.Web.Optimization.BundleCollection’ could be found (are you missing a using directive or an assembly reference?) …\Global.asax.cs 87 24 FlixPicks.Net

Solution:

In Global.asax -> Application_Start

Change:

BundleTable.Bundles.RegisterTemplateBundles();

To:

BundleMobileConfig.RegisterBundles(BundleTable.Bundles);

Explore posts in the same categories: ASP.NET MVC

Tags:

You can comment below, or link to this permanent URL from your own site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: