현재 mvc 4.0 및 IgniteUI를 사용하여 프로젝트를 만들고 있습니다. ignite의 모든 파일을 번들로 만들려고합니다 ... 그래서 웹 설정에서 설정했습니다. 파일이Asp.net MVC 4 번들링 및 디렉토리 축소
<system.web>
<compilation debug="false" targetFramework="4.0" />
내 bundlesConfig.cs
using System.Web;
using System.Web.Optimization;
namespace LicenciamentoMVC
{
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
//BundleTable.EnableOptimizations = true;
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
//bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
bundles.Add(new StyleBundle("~/Content/css").IncludeDirectory("~/Content/","*.css",true));
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.resizable.css",
"~/Content/themes/base/jquery.ui.selectable.css",
"~/Content/themes/base/jquery.ui.accordion.css",
"~/Content/themes/base/jquery.ui.autocomplete.css",
"~/Content/themes/base/jquery.ui.button.css",
"~/Content/themes/base/jquery.ui.dialog.css",
"~/Content/themes/base/jquery.ui.slider.css",
"~/Content/themes/base/jquery.ui.tabs.css",
"~/Content/themes/base/jquery.ui.datepicker.css",
"~/Content/themes/base/jquery.ui.progressbar.css",
"~/Content/themes/base/jquery.ui.theme.css"));
bundles.Add(new StyleBundle("~/bundles/cssFiles").IncludeDirectory("~/Content/CssIgniteUI/", "*.css", true));
bundles.Add(new ScriptBundle("~/bundles/jsFiles").IncludeDirectory("~/Scripts/js/", "*.js", true));
}
}
}
하고 내가 원하는보기에 내가
index.cshtml이 경우,이를 넣어 0내 파일 디렉토리는 다음과 같이이다 : 프로젝트
-Content
--CssIgniteUI(Css files of igniteui)
--themes(default theme css files of asp.net project)
--Site.css
-Scripts
--js(folder containing the js files from igniteui)
--all the files that come with the default theme of the project
내가 Cliente CONTROLER을 열려고 ... 그것은 나에게 내가 놓친 거지 어떤 오류 ... 을 준다? 페이지는 당신이 ASP로 jQuery를 UI를 누락 될 수 있습니다 생각 .. 사전에
감사합니다 ..
오류가 정확히 무엇입니까? –
실수로 죄송합니다. 에로를 추가했습니다. 페이지가 나타나지 않습니다. 화이버를 사용하여 파일이 전달되고 있는지 확인합니다 .. –
소스보기로 이동하면 특정 파일을 볼 수 없습니다. 포함되지 않습니까? –