I have multiple Visual Studio 2003 Deployment projects that include the primary output of another project. One of the differences in the Deployment projects is that they use different primary output settings properties. These settings get copied to a PrimaryProjectName.exe.config file when I build the primary project, so currently my build process goes something like:
- Build primary project.
- Edit primary project .config file for deployment A.
- Build deployment A.
- Edit primary project .config file for deployment B.
- Build deployment B.
- Edit primary project .config file for deployment C.
- Build deployment C.
- ...
I would like to automate this process. I can build scripts to edit the primary project .config file for each deployment, but how can I run them when I build the deployment projects? My VS Application project properties includes a Build Events tab where I can define pre-build events that get run before building the primary output, but there is no such tab for Deployment projects.
Edit: Sorry I did not specify, this is a VS 2003 project targeting .Net 1.1. I know, but it's a client requirement.