microsoft-ajax-minifier

Using the Microsoft Ajax Minifier with Web Setup project & Source Control

只谈情不闲聊 提交于 2019-12-01 08:48:25
问题 I've just started investigating the Microsoft Ajax Minifer 4.0 for use with a Visual Studio 2008 Web Application I work on. It's proven easy enough to hook it into the .csproj file so it produced .min.js files for all scripts, however I'm stumped as to how to integrate this with the Web Setup project & Source Control. Essentially what I want to do is have the resultant .min.js files included in the Web Setup project without having them included in Source Control because: Having to check them

How can we include the files created by ajaxmin in the msdeploy package created by MSBuild

て烟熏妆下的殇ゞ 提交于 2019-11-29 14:22:14
We use ajaxmin to create .min.js files from all our .js files. We have edited the .csproj file of the project and added following: <Import Project="$(MSBuildExtensionsPath32)\Microsoft\MicrosoftAjax\ajaxmin.tasks" /> <Target Name="AfterBuild"> <ItemGroup> <JS Include="**\*.js" Exclude="**\*.min.js" /> </ItemGroup> <AjaxMin JsSourceFiles="@(JS)" JsSourceExtensionPattern="\.js$" JsTargetExtension=".min.js" /> </Target> This works great when we build the site on our workstation and the .min.js files can be used in the site. When we check this project in this task runs also on the msbuild server

individually minify JS and CSS in Visual Studio 2010

蓝咒 提交于 2019-11-29 07:34:14
I'm currently migrating a project to Visual Studio 2010 and am trying to figure out how to minify JS and CSS files individually on build. In Visual Studio 2008 I used a Web Deployment Projects with a build task that referenced the C# port of the YUI Compressor . In Visual Studio 2010 Web Deployment Projects seem to have been integrated into the build process. Now there is this Microsoft AJAX Minifier in public beta and I'm more confused than ever. I found this blog post which makes the business with the Microsoft AJAX Minifier a non-starter because of CSS limitations. This shouldn't be

Using Microsoft AJAX Minifier with Visual Studio 2010 1-click publish

别等时光非礼了梦想. 提交于 2019-11-28 17:39:49
The Microsoft AJAX Minifier provides a build task which can be used in TFS or local build definitions. I have succsfully used this in both a local project file (building to seperate files) and in TFS build definitions (overwriting the existing JS files). I'd like to move to using Visual Studio 2010's 1-click publish feature rather than a TFS build definition, however adding the minification task as an AfterBuild target in the project file doesn't appear to effect the 1-click publish feature. Using information found in this thread and these articles , I tried creating a file named '[ProjectName

individually minify JS and CSS in Visual Studio 2010

被刻印的时光 ゝ 提交于 2019-11-28 01:04:04
问题 I'm currently migrating a project to Visual Studio 2010 and am trying to figure out how to minify JS and CSS files individually on build. In Visual Studio 2008 I used a Web Deployment Projects with a build task that referenced the C# port of the YUI Compressor. In Visual Studio 2010 Web Deployment Projects seem to have been integrated into the build process. Now there is this Microsoft AJAX Minifier in public beta and I'm more confused than ever. I found this blog post which makes the

Using Microsoft AJAX Minifier with Visual Studio 2010 1-click publish

[亡魂溺海] 提交于 2019-11-27 10:38:16
问题 The Microsoft AJAX Minifier provides a build task which can be used in TFS or local build definitions. I have succsfully used this in both a local project file (building to seperate files) and in TFS build definitions (overwriting the existing JS files). I'd like to move to using Visual Studio 2010's 1-click publish feature rather than a TFS build definition, however adding the minification task as an AfterBuild target in the project file doesn't appear to effect the 1-click publish feature.