Sharepoint feature environment-dependant (UAT, PROD) properties

buildmoss

I'm developing a feature for MOSS which stores some environment-specific config data in feature.xml (like connection string).

I would like to have a separate .properties file for each environment and make it automatically substitute appropriate values to where needed (like feature.xml) while building.
Is that possible and what tools can I use (I suppose, NAnt?)

Thank you!

Regards,
Anton

Best Answer

Wouldn't it be easier to just store all those values in a (hidden) list in the site collection, that way your solution stays clean and env. independend, allowing for values to be set through the UI (or powershell even) instead of including them in your solution, which IMHO isn't very clean architecture / maintenance wise.

Related Topic