I created an MVC 5 application that runs perfectly when launched via Visual Studio. After publishing it to the server for the first time, everything worked fine. However, after making some CSS corrections and republishing the entire project, the website still displays the old CSS file. I have deleted all files from the server and tried multiple times, but the issue persists. Despite the fact that the changes are present in the CSS file on the server.
I suspect that this problem is related to MVC bundling because when I inspect the source code, it shows that it is accessing a different file that is not even located on the server:
<link href="/Content/cssmain?v=Ikj7NnMg3q9kTHR7ynWOJDQFGMZl3mtVMi_2EkOJxc41" rel="stylesheet"/>
How can I instruct Visual Studio to minify my CSS file again?
I have attempted cleaning and rebuilding, but without any success.
Edit: The configuration of my bundle appears as follows, and all files are stored on the server in the Content folder.
bundles.Add(new StyleBundle("~/Content/cssmain").Include(
"~/Content/bootstrap.css",
"~/Content/site.css",
"~/Content/ilightbox.css",
"~/Content/bannerscollection_zoominout.css"));
Thank you very much.