ASP.bower에 NET MVC AdminLTE를 설치하고 Azure에 디자인하는 방법
하고 싶은 일
컨디션
웹 프로젝트 만들기
bower.json 생성
bower.제이슨 완성.
프로젝트에 포함할 파일을 마우스 오른쪽 단추로 누르십시오
bower.json
"dependencies": {
"admin-lte": "v2.4.0"
}
AdminLTE 설정
BundleConfig.cs 편집
using System.Web.Optimization;
using WebHelpers.Mvc5;
namespace WebApplication12
{
public class BundleConfig
{
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle("~/Bundles/css")
.Include("~/bower_components/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/select2/dist/css/select2.css")
.Include("~/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css")
.Include("~/bower_components/font-awesome/css/font-awesome.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/admin-lte/plugins/iCheck/minimal/blue.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/admin-lte/dist/css/AdminLTE.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/admin-lte/dist/css/skins/skin-blue.css"));
bundles.Add(new ScriptBundle("~/Bundles/js")
.Include("~/bower_components/respond/dist/respond.src.js")
.Include("~/Scripts/modernizr-*")
.Include("~/bower_components/jquery/dist/jquery.js")
.Include("~/bower_components/admin-lte/plugins/jQueryUI/jquery-ui.js")
.Include("~/bower_components/bootstrap/dist/js/bootstrap.js")
.Include("~/bower_components/fastclick/lib/fastclick.js")
.Include("~/bower_components/jquery-slimscroll/jquery.slimscroll.js")
.Include("~/bower_components/select2/dist/js/select2.full.js")
.Include("~/bower_components/moment/moment.js")
.Include("~/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js")
.Include("~/bower_components/admin-lte/plugins/iCheck/icheck.js")
.Include("~/bower_components/inputmask/dist/jquery.inputmask.bundle.js")
.Include("~/bower_components/admin-lte/dist/js/adminlte.js")
.Include("~/Scripts/app.js")
.Include("~/Scripts/init.js"));
}
}
}
nuget에서 다음 패키지를 설치합니다
using System.Web.Optimization;
using WebHelpers.Mvc5;
namespace WebApplication12
{
public class BundleConfig
{
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle("~/Bundles/css")
.Include("~/bower_components/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/select2/dist/css/select2.css")
.Include("~/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css")
.Include("~/bower_components/font-awesome/css/font-awesome.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/admin-lte/plugins/iCheck/minimal/blue.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/admin-lte/dist/css/AdminLTE.css", new CssRewriteUrlTransformAbsolute())
.Include("~/bower_components/admin-lte/dist/css/skins/skin-blue.css"));
bundles.Add(new ScriptBundle("~/Bundles/js")
.Include("~/bower_components/respond/dist/respond.src.js")
.Include("~/Scripts/modernizr-*")
.Include("~/bower_components/jquery/dist/jquery.js")
.Include("~/bower_components/admin-lte/plugins/jQueryUI/jquery-ui.js")
.Include("~/bower_components/bootstrap/dist/js/bootstrap.js")
.Include("~/bower_components/fastclick/lib/fastclick.js")
.Include("~/bower_components/jquery-slimscroll/jquery.slimscroll.js")
.Include("~/bower_components/select2/dist/js/select2.full.js")
.Include("~/bower_components/moment/moment.js")
.Include("~/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js")
.Include("~/bower_components/admin-lte/plugins/iCheck/icheck.js")
.Include("~/bower_components/inputmask/dist/jquery.inputmask.bundle.js")
.Include("~/bower_components/admin-lte/dist/js/adminlte.js")
.Include("~/Scripts/app.js")
.Include("~/Scripts/init.js"));
}
}
}
Web.config에 추가
<section name="routeJs" type="RouteJs.RouteJsConfigurationSection, RouteJs" />
app.js와 init.js 추가
_Layout.cshtml 편집
Views\Shared에 다음 내용 추가
Azure에 대한 설계
Azure를 사용하여 App Service를 제작합니다.
설계를 진행하다
움직이지 않다
http://webapplication1220171005035112.azurewebsites.net/
여기서부터 중요해.
사이트 주소에scm 추가 및 브라우저에서 열기
4.
이동했어
Reference
이 문제에 관하여(ASP.bower에 NET MVC AdminLTE를 설치하고 Azure에 디자인하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/roundrobin/items/1552f58a3b57d245e7da텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)