I am at the end of an Asp.Net MVC 1.0 project in VS2008 / Framework 3.5 and am trying to make some performance optimizations. In my project, I have several different "themes" that are used, depending on the role of the registered user. My folder structure is the same ...
\Themes
\Theme1
\Css
\Folder1
\CssFile1.css
\CssFile2.css
\Folder2
\CssFile1.css
\CssFile2.css
\Images
<Images go here>
\Theme2
\Css
\Folder1
\CssFile1.css
\CssFile2.css
\Folder2
\CssFile1.css
\CssFile2.css
\Images
<Images go here>
As new customers arrive on this platform, new topics will be added.
I am using Yahoo! UI Library: YUI Compressor for .Net (which is really cool) to minimize and combine css (and js) files.
I followed the example at http://yuicompressor.codeplex.com/wikipage?title=Sample%20MSBuild.xml%20File&ProjectName=yuicompressor to run the MSBuild script through the post-build event to complete the minify / merge task.
, , - <CssFiles Include="..\Themes\**\*.css" /> ItemGroup, , css, css , ...
\Themes
\SylesSheetFinal.css
css , css ...
\Themes
\Theme1
\StyleSheetFinal1.css
\Theme2
\StyleSheetFinal2.css
MSBuild. - , , / ? , , ItemGroup. , MSBuild script Themes .
!