I have URL rewrite rules configured for production IIS application pool that do not work in the development IIS application pool (notably HTTP to HTTPS redirection).
What I have:
web.production.configfor productionweb.config(for development AND local IIS Express)- Two publish profiles (development and production).
What I need:
web.production.configto be published with the production publish profile.web.configto be published with the development publish profile AND used by the local IIS express for local debugging.
What I currently do:
- Exclude both files from being published.
- Copy the
web.production.configfile manually after deployment, renaming it to web.config on the server.
How can I automate this? The <ExcludeFilesFromDeployment /> property in pubxml does not suppress the need for a renaming of the file after deployment.