-1

I am working on sp2013 -framework 4.5 I am trying to bundle and minify scripts and styles 1. can you recommend minifier to use in SharePoint. 2.

I am trying to add System.Web.Optimization to web.config I got :

error CS0234: the type or namespace name "Optimization" does not exist in the namespace 'System.Web' (are you missing an assemble reference?)

tnx in advance :) Ronen

0

You can use nuget package to bundle assets, more detail here

  • I install via PM as suggested though when I update the namespace under web.config I got that error : error CS0234: the type or namespace name "Optimization" does not exist in the namespace 'System.Web' (are you missing an assemble reference?) – Adleron Mar 16 '17 at 14:41
  • could you check if this package is installed? Microsoft.AspNet.Web.Optimization – Ali Mar 16 '17 at 23:20
  • I can't press +1 for you comment but it work :) – Adleron Mar 27 '17 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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