Last post Jan 22, 2007 06:22 PM by ptifien
Jan 17, 2007 04:59 PM|ptifien|LINK
I've got a website project which arborescence (simplified) is :
When I will do a release with XXX config, I want that during the build process :
- /root/include/css/*.* is emptied
- /root/include/js/*.* is emptied
- /root/XXX config/css content is copied to /root/include/css/ folder
- /root/XXX config/js content is copied to /root/include/js/ folder
And the same for YYY config
For that, I already created 2 web deployment project for my application, but I dont know at all what I need to specify in the wdproj file. Can I have some help please ?
I tried a lot of things like : <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\include\css\*.css"/> but it doesn't work...
Jan 21, 2007 12:35 AM|adamtoth|LINK
What I would suggest is to simply use the web deployment project to precompile your site to a local folder, and then use MSBuild tasks in the AfterBuild target to do your file manipulations and ultimately publish to the server.
Instead of specifying the path to the server in the Output Path field, leave that with the default (e.g. ./Debug), so your site gets precompiled and merged locally. Then, start learning about MSBuild Tasks such as Move, Copy, Delete, MkDir, etc. and use
those in your AfterBuild target in the wdproj file to put the files in the proper directories and then copy all those files up to the server.
Hope that helps.
Jan 22, 2007 06:22 PM|ptifien|LINK