Set web.config value with build number
What's the best approach to get the build number into a specific web.config value? I want to use it for cachebusting some CDN assets.
Phil
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 14 Jul, 2016 11:48 PM
Hi Phil,
You can make a simple PS script updating web.config during the build, something like: https://blogs.msdn.microsoft.com/sonam_rastogi_blogs/2014/08/18/upd...
2 Posted by Phil Dye on 18 Jul, 2016 12:40 PM
Thanks Feodor, that's worked brilliantly.
For completeness, here's what I'm using;
appveyor.yml
ModifyAppSetting.ps1
Phil
Phil Dye closed this discussion on 18 Jul, 2016 12:41 PM.