views:

202

answers:

2

How would you got about setting up a project that doesn't really build, but just runs some commands on the files you are working with.

For example, lets say I wanted to setup a project for creating Windows Vista and Windows 7 gadgets. A gadget is nothing more than some html, images, javascript, xml, css, put into a .zip file and then renamed *.gadget.

How do you go about setting up a project like this in VS2008? I think every time you "build" you would really just want a zip, rename, copy sequence.

+1  A: 

You have to develop a script (.bat) to do the things that you want. After that you can read this post to add the new option to VS

http://viswaug.wordpress.com/2009/02/13/launching-your-automated-build-scripts-from-within-visual-studio/

Edited: You can download a VS Template to develop Vista Gadgets here

Onir
Looks good. I'll go check this out and get back to you. +1
tyndall
The gadgets was just an example, but I may be able to hack that template into something I can use.
tyndall
You can learnt how to build a template in: http://msdn.microsoft.com/en-us/library/s365byhx(VS.80).aspx
Onir
A: 

I disagree with the other answer. If you know msbuild you can make "build" do whatever you want. Just edit a csproj file

Ryu