using System.Web;
using System.Web.Optimization;
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*"));
나는 오류가 점점 오전 :형식 또는 네임 스페이스 이름 'ScriptBundle'을 (를) 찾을 수 없습니다 (당신은 using 지시문 또는 어셈블리 참조가?)
Error 16 The type or namespace name 'ScriptBundle' could not be found (are you missing a using directive or an assembly reference?)
일부 참조 문제처럼 보이는을, 그러나 나는 그것을 이해할 수 없다. 도와주세요. 이 오류의 원인은 무엇입니까?
[This (http://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4-app) 힌트를 주면,'System.Web.Optimization.dll'을 참조 할 필요가 있습니다. –
Joachim에게 감사하지만 이미 System.Web.Optimization을 사용하여 해당 참조가 있습니다. 내가 참조를 제거해야하고 다시 다시해야 할 것처럼 보이는 수도 있습니다. –
비슷한 문제가 있습니다. [This] [1] 해결 된 항목입니다. [1] : http://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4- 앱 – yantaq