MVC4 bundle template error
I am stuck with bundles in MVC4. I have defined a bundle
bundles.Add(new ScriptBundle("~/bundles/maps").Include("~/Scripts/map.*.js"));
and scripts
map.base.js
map.helper.js
It was ok until I added
map.setting.js
After that I get the error
Invalid pattern: 'map.*.js'. Wildcards are only allowed in the last path segment, can contain only one leading or trailing wildcard, and cannot be used with {version}.
Parameter name: virtualPaths
Any ideas how to solve this without listing all the files (I expect to add more with the "map." Prefix)?
Thanks for the help.
+3
source to share
1 answer