문제

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

도움이 되었습니까?

해결책 2

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.

다른 팁

Have you tried to use the UpgradeTemplate?

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top