aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

web.Release.config not merging into web.config on publish

Open chassq opened this issue 10 years ago • 4 comments

Hey, Trying to insert a rewrite rule into my web.config when the site is published in Release. So far no luck. Does RC2 support this in the publish process?

Thanks!

Files attached in next comment

chassq avatar May 21 '16 10:05 chassq

web.configs.zip

chassq avatar May 21 '16 10:05 chassq

web.config transforms like web.release.config are not supported.

Tratcher avatar May 21 '16 15:05 Tratcher

@chassq You could provide that logic in a homebrew tool that would make modifications to the web.config in published output as a postpublish operation. For example, I do this to enable logging and change the log filepath. https://github.com/GuardRex/GuardRex.AspNetCore.Server.IISIntegration.Tools

It's based on cloning the bits in @moozzyk publish-iis tooling: https://github.com/aspnet/IISIntegration/tree/dev/src/Microsoft.AspNetCore.Server.IISIntegration.Tools

guardrex avatar May 21 '16 16:05 guardrex

Much thanks! Will check it out.

chassq avatar May 23 '16 11:05 chassq