How to version javascript files in a Bundle?
<p>I want to include my JS scripts in a <strong>Bundle</strong> AND at the same time <strong>version</strong> them to avoid browser caching if those scripts have been changed.</p>

<p>Is there a "<em>native</em>" way with <strong>ASP.NET MVC 5</strong> to accomplish this?</p>

<p>I've found a library called <a href="http://getcassette.net/" rel="noreferrer">Cassette</a> that does exactly this (automatically versioning the JS, which is a good thing) but I wanted something (even) simpler, without changing a lot my script configuration...</p>

<p>The following does not work:</p>

<pre><code> var version = ConfigurationManager.AppSettings["cache"].ToString();
 bundles.Add(new ScriptBundle("~/bundles/scripts").Include(
     "~/Scripts/framework.js" + version,
     "~/Scripts/main.js"));
</code></pre>

<p>The result is that the "framework.js" file is not downloaded by the browser (probably is not found).</p>