I Have ASP.Net MVC 3 App. Im using YUICompressor.Net for minifying Javascripts & Css Files during the post build using MSBuild.
The generated minified javascript file is JSMin.js and CssMin.css My master page refers to these files as below:
link rel="stylesheet" href="@Url.Content("~/Content/CssMin.css")" type="text/css">
script type="text/javascript" src="@Url.Content("~/Scripts/JsMin.js")" >
Now the issue is minified version gets cached in the end users browser, so our new fixes in te javascript/css is not reflected in the end user browser because those files gets cached as it is using the same file name. I'm looking for some kind of clean process which will build the minified javascript & Css file with version number to it like JsMin1.0.js & CssMin1.1.js and automatically update the reference for the below
link rel="stylesheet" href="@Url.Content("~/Content/CssMin.css")" type="text/css">
script type="text/javascript" src="@Url.Content("~/Scripts/JsMin.js")" >
Your help is highly appreciated. Thanks.