CSS changes on MVC App not working
This is likely due to the bundling framework using bootstrap.css
in local/debug mode and bootstrap.min.css
when you deploy. The framework uses a set of conventions when determining which files to add to a bundle, one of which is to use the .min version of a file, if it exists, for release builds. This is probably what's biting you. You made the change in bootstrap.css but not in bootstrap.min.css.
Try deleting bootstrap.min.css
and re-deploying. This should force the frameworkt to minify and use the bootstrap.css
file that you modified.
This issue drove me crazy until I read someone's comment about cached browser data! In FireFox, I used ctrl-r to reload the page and everything came up as expected. Long story short, always clear your cache before checking for published style changes.
In terms of my azure website, I went into the portal and stopped and restarted the service and this seemed to force a style refresh for users.