ASP.NET Core MVC 프로젝트에서 Visual Studio UI를 사용하지 않고, .NET CLI의 dotnet aspnet-codegenerator 명령으로 Controller와 View 파일을 생성하는 방법을 정리합니다. VendorsController.cs와 Index.cshtml을 예제로 프로젝트 폴더 이동, 코드 생성기 설치, 컨트롤러와 뷰 생성, 실행 확인, 자주 발생하는 오류까지 함께 살펴봅니다.

 

azunt.com/docs/aspnet/core/mvc/create-controller-and-view-with-dotnet-cli/

Comments

Be the first to post a comment

Post a comment