Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Minify .net AXD Resources

I am working on a big .NET project. I am currently creating an automated minifier for JS and CSS files using YUI compressor. After doing some research, I found that the heaviest files in the project are actually .NET resources (Like MS ajax file). They are very big and unminified.

I am wondering, is there any way to minify them?

Thanks

like image 750
iBiryukov Avatar asked Nov 05 '22 13:11

iBiryukov


1 Answers

Yep - there's definitely a way to minify and/or combine any Javascript and/or Cascading Style Sheets for your ASP.NET application.

But before I drop some links, etc... if you're using some of the major javascript framework's, like jQuery, MSAjax, whatever.. they all usually have minified version available to download .. and some of them are available on CDN's .. which means you don't need to minify/combine them in your solution.

Here is a list of major javascript libraries cached on the MS CDN.

Now, finally for some info about how to minify/combine ASP.NET solutions.

This link has some documentation about how to make an MSBuild.xml file which is used to defines all the configuration settings/options for YUICompressor.NET.

While this link is a video I made about how to do this with TFS2008 and Continuous Integration.

HTH.

like image 135
Pure.Krome Avatar answered Nov 15 '22 07:11

Pure.Krome