私は以下のように外部jsとcssのURLを持っています。これらのURLは、メインアプリケーションに関連していないapisです。私はバンドルを行うと、これらのURLのファイルにASP.NET MVCで外部のスクリプトとスタイルシートファイルを一括してバンドルする方法
Dim urls(5) as string
urls(0)=http://localhost/media/10/custom.js
urls(1)=http://localhost/media/11/custom1.js
urls(2)=http://localhost/media/12/custom2.js
urls(3)=http://localhost/media/10/custom3.js
urls(4)=http://localhost/media/10/custom4.js
BundleTable.Bundles.Add(New ScriptBundle("~/Content/js").Include(urls))
BundleTable.EnableOptimizaions=True
を縮小化したい
http://localhost/media/10/custom.js,
http://localhost/media/11/custom1.js,
http://localhost/media/12/custom2.js,
http://localhost/media/13/custom3.js,
http://localhost/media/14/custom4.js
私は以下のエラーを取得しています:
the URL '....' is not valid. Only application relativenURLs (~/url) are allowed.
はどうやって外部ファイルをバンドルすることができますか?
**アプリケーションrelativenURLs(〜/ url)のみが許可されています** – Shyju