title: MVC4 Bundling Wildcards - * vs. {version}
body: <p>I understand and fully appreciate the new bundle wildcard {version} regex, as it will continue to pick up your script and style libraries even after updating, etc.  The problem is that I cannot get it to work effectively.</p>
  
  <p>I had previously use the following notation to pick up my jQuery scripts:</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
              "~/Scripts/jquery-1.*"));
  </code></pre>
  
  <p>and it would pick up all files matching the asterisk wildcard.  </p>
  
  <p>But when I tried the following:</p>
  
  <pre><code>        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                      "~/Scripts/jquery-{version}.js"));
  </code></pre>
  
  <p>I noticed that the jQuery file was not written out to the _Layout.cshtml page.</p>
  
  <p>NOTE - I am indeed using the following HTML code for both examples:</p>
  
  <pre><code>@Scripts.Render("~/bundles/jquery")
  </code></pre>
  
  <p>When I use the first example above (" * ") notation the following is written to the page:</p>
  
  <pre><code>&lt;script src="/Scripts/jquery-1.7.2.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However when I use the "{version}" notation, there is merely an empty space where the library should be written.  This pertains to both jquery files as well as the associated CSS stylesheets.</p>
  
  <p>It does not matter whether I am compiling for DEBUG or RELEASE mode.  The results are the same.  Obviously in release mode I'll get the optimized version when using the "*" notation:</p>
  
  <pre><code>&lt;script src="/bundles/jquery?v=VUv2YOeuOgHad-FHZ-vGMDu9wN1j9VZGifI1SBUUSMs1" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>So being the perfectionist that all developers are, I would greatly like to see the {version} notation work for me, as I do keep up to date on new releases and would like this control on my deployments.</p>
  
  <p>Any insight into what I may be doing wrong is greatly appreciated.</p>
  
  <p>Thanks in advance,
  Dan</p>