Sunday, 25 August 2013

Is there any way to use compile time variables on a .html file using MsBuild?

Is there any way to use compile time variables on a .html file using MsBuild?

I have a PhoneGap project that use custom MSBuild scripts running in
TeamCity as a CI build. What I want to add now is zip and send the project
files with the PhoneGap REST API on each check-in. But before sending the
files I need to make a few changes inside the head node of the index.html
since there are URIs to a service that differs from DEBUG, TEST, RELEASE
environments.
Is there any way I could use something like #ifdef with build properties
on a .html file or is there perhaps an even better way of solving this
scenario using MsBuild/TeamCity?

No comments:

Post a Comment