15

I am trying to figure out why when I create a scriptbundle that is referencing files that are in an IIS VirtualDirectory under my main site's application folder, why it won't output anything.

I found this post:

Why does ResolveBundleUrl not work for custom folders? (MVC Beta 4)

but it no longer seems valid with the latest beta build of System.Web.Optimization.

Community
  • 1
  • 1
happyfirst
  • 1,033
  • 1
  • 13
  • 27

3 Answers3

14

For anyone stumbling upon this question, the source can now be found at AspNetWebOptimization.

mybrave
  • 1,662
  • 3
  • 20
  • 37
Per Stolpe
  • 192
  • 1
  • 10
9

It's still not currently available, but it will eventually be hosted on the ASP.NET Optimization CodePlex site.

bkaid
  • 51,465
  • 22
  • 112
  • 128
7

System.Web.Optimization is still in the process of being moved to open source, so you can't find the official sources currently.

SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
Hao Kung
  • 28,040
  • 6
  • 84
  • 93
  • Any estimate on when it will be made available? – happyfirst Aug 24 '12 at 19:47
  • I don't have a specific date at this time, but you can use tools like ILSpy to disassembly to effectively look at the source already. – Hao Kung Aug 25 '12 at 02:36
  • thanks. I downloaded and ran ILSpy. I've tried to figure out why my bundles in iis virtual directories are not rendering, but it's hard mentally walking all that code that so much is internal and so much resolving paths and urls over and over. How can I get a pdb for System.Web.Optimization so that I can step through and figure out why it won't render my script tags? – happyfirst Aug 27 '12 at 18:35
  • Its probably easists if you just update this question with some code snippets, mostly around how you register your bundle and how you are rendering it on the page, I can probably immediately tell you what's wrong :) – Hao Kung Aug 27 '12 at 18:43
  • Thanks, I did reply to you with a code snippet in this other question: http://stackoverflow.com/questions/12100524/how-do-i-get-system-web-optimization-bundles-to-work-with-custom-folders-in-an-i – happyfirst Aug 27 '12 at 19:25
  • That's the bundle registration side, how are you referencing the bundle in your pages? – Hao Kung Aug 27 '12 at 22:10
  • "@Scripts.Render("~/bundles/jquery")" . I finally got it working but I had to modify System.Web.Optimization. My answer is in that other post. – happyfirst Aug 27 '12 at 23:45