We've recently upgraded from VS2008 -> VS2010 (and hence upgrading from Web Deployment Project to proper deployment project).
Obviously what's new in VS2010 web deployments is the introduction of Workflow as the build process template.
Previously, we used a MSBuild task in the WDP to execute the Yahoo YUI Javascript/CSS compression modu开发者_如何学Gole to minify/compress javascript and css files.
Has anyone managed to accomplish this task with Visual Studio 2010?
I have seen the new "SquishIt" compressor created by Justin Etheridge, but its not ideal as it "squishes" on the fly (e.g on Application_Start - Global.ascx) - which means you still have to push out all the uncompressed files to your web server before squishing.
In the Workflow designer - i can see a toolbox item called "MSBuild" - just dont know how to use it to accomplish what i want.
Been searching high and wide, no-one seems to know how.
EDIT
After nearly 2 weeks, still no solution/answers. Surely someone has come across this problem? For now we've just been manually executing the MSBuild Task via VS Command Prompt post-build.
EDIT
Still nothing!!
Have you tried to use the UpgradeTemplate?
That one basically executes a MSBuild process and execute the targets file as if it were 2008
Ended up using SquishIt.
Not ideal, because the files are "squished" at runtime. And IMO only the "assets" should be deployed to the server (e.g pre-minified).
But i have no other option.
精彩评论