Using System.web.optimization; Visual Studio For Mac

It can also be published using Visual Studio for Mac’s Archive feature, or using Apple’s Application Loader app (that is installed with Xcode). This is one of the benefits of sharing the same solution and project structure on Mac and Windows.

Active6 years, 9 months ago
  1. Download demo (no EXE) - 3.9 MB; Download demo - 7.9 MB; Introduction. In my previous article, I described what is ASP.NET Web Optimization Framework and what all classes are provided by this framework in order to use this framework in web form, web pages and ASP.NET MVC.So here in this article, I will explain how to use this framework in ASP.NET MVC 4.
  2. We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand.

I've been using Microsoft.Web.Optimization package for some time via the Visual Studio 2012 trial. I was thinking that the Optimization Namespace would be part of .NET 4.5 as stated here.

However, I installed the new release of Visual Studio 2012 & .NET Framework 4.5, and now there's no System.Web.Optimization namespace by default! I had to install the package through NuGet

Is the VS 2012 Ultimate release not yet complete? Or, is the Microsoft.Web.Optimization namespace not in .NET 4.5?

JohnB
12.1k14 gold badges78 silver badges97 bronze badges
Kamyar NazeriKamyar Nazeri
13.9k13 gold badges44 silver badges82 bronze badges

2 Answers

Visual

Microsoft is adopting a new strategy with VS2012 in which they are componentizing more of the new features as packages that can be downloaded via nuget. For example, Entity Framework, MVC4, WebApi, Web Optimization, etc.. are all now packages rather than part of the framework.

The reason is that these systems can now be easily upgraded out of cycle with the rest of the framework. Thus, MVC5 can be easily released without waiting for .NET 5, and Web Optimization v2 can be released whenever it might be ready.

Erik FunkenbuschErik Funkenbusch
81.4k24 gold badges164 silver badges261 bronze badges

Here is a similar question:

Using System.web.optimization; Visual Studio For Mac

Microsoft.Web.Optimization package is now 'legacy':

Visual Studio For Mac Tutorial

The new package is Microsoft.AspNet.Web.Optimization:

Microsoft.AspNet.Web.Optimization and Microsoft.Web.Optimization are NOT part of .NET Framework 4.5.

Visual Studio For Mac Download

Community
JohnB

Using System Web Optimization Visual Studio For Mac

JohnB
12.1k14 gold badges78 silver badges97 bronze badges

Not the answer you're looking for? Browse other questions tagged asp.net.net.net-4.5 or ask your own question.