r/ASPNET • • Nov 28 '13

[MVC] Organizing your BundleConfig.cs

http://blackandodd.blogspot.se/2013/11/aspnet-mvc-organizing-your.html
8 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Nov 29 '13

Could you give some example how to implement it with T4MVC in this case?

3

u/DaRKoN_ Dec 03 '13

T4MVC can automatically make static file reference links.

  Links.Scripts.jquery_2_0_3_js

You can configure T4MVC to automatically run (via the AutoT4MVC VS extension), which will regenerate these classes as required when the project changes.

But as mentioned, one of the benefits of the bundling system is that you can just reference:

jquery-{version}.js

And it will sort out the rest.