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.config
for productionweb.config
(for development AND local IIS Express)- Two publish profiles (development and production).
What I need:
web.production.config
to be published with the production publish profile.web.config
to 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.config
file 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.