asp.net mvc5 에서 ES5 Setting 하는 방법에 대해 알아봤습니다.

 

다음과 같은 글이 있어 공유합니다.

 

https://sung.codes/blog/2017/05/22/setting-es6-environment-asp-net-mvc-5/

 

Setting up an ES6 Environment for ASP.NET MVC 5

UPDATE : October 13th, 2018 Following post uses Babel 7 & Webpack 4. https://sung.codes/blog/2018/10/13/setting-up-a-react-environment-for…

sung.codes

 

 

행복한 고수되십시오.

 

woojja ))*

]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]

반응형

Controller 에 RoutePrefix Attribute 를 설정해도 작동하지 않는 경우가 있다.

이는 한가지를 설정해주지 않아서 일텐데...

 

    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            
            routes.MapMvcAttributeRoutes();
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }

 

위와 같이 routes.MapMvcAttributeRoutes(); 를 추가해준다.

 

위 구문을 추가해주면 각 Controller 의 노출된 Action Method 에 기본적으로 Route Attribute 를 추가해주어야 한다.

 

 

 

 

행복한 고수되셔요.

 

woojja ))*

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

반응형

ls -l 명령어는 사용가능하지만 ll 명령어는 찾을 수 없다는 메세지를 뱉을 때는...

 

sudo nano ~/.bashrc 를 입력하여 

주석처리되어 있는 아래 구문의 주석을 제거해준다.

#alias ll='ls -l' 

#alias la='ls -A'

#alias l='ls -CF'

 

이보다 먼저

sudo nano .bash_profile

를 열어

export PATH=%PATH:/bin:/usr/local/bin:/usr/bin

가 추가되어 있는지 확인해 보는 것도 좋다.

 

 

행복한 고수되셔요.

woojja ))*

\\\\\\\\\\\\\\\\\\\\\

반응형

'ETC > Raspberry Pi' 카테고리의 다른 글

[Raspberry Pi] WiFi 설정  (0) 2020.03.11
[Raspberry Pi] Raspberry pi SSH 연결  (0) 2020.03.11

+ Recent posts