views:

259

answers:

1

Hi all,

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 module 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!!

+1  A: 

Have you tried to use the UpgradeTemplate?

That one basically executes a MSBuild process and execute the targets file as if it were 2008

Ewald Hofman
Could you elaborate a bit more please? Ie whats involved, how to get this going with CI, etc
RPM1984
@Ewald Hofman - can u elaborate please?
Pure.Krome
You can choose from several templates in the build definition. When you choose the UpgradeTemplate, there is basically only one activity and that is to execute the targets file by MSBuild.Thus you basically use the TFS 2008 way of running the build. You still can use the CI trigger and so on. There is one little caveat: the UpgradeTemplate uses MSBuild 4 instead of MSBuild 3.5 that was used by TFS2008. It probably won't hurt you, but I have heard people have had issues with that.
Ewald Hofman