Frameworks, Platforms/ASP.Net Core
ASP.Net Core - 비주얼 코드(Visual Code) 프로젝트 생성
라큐브
2023. 5. 10. 10:44
1. Visual Code 설치
설치가 되어있다면 넘어가셔도 괜찮습니다.
Visual Studio Code - Code Editing. Redefined
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
2. SDK 설치
스프링에서 JDK 사용하는 것 처럼 닷넷에서도 SDK를 설치합니다.
Visual Studio에서 개발 하셨다면 넘어가셔도 괜찮습니다
..NET 다운로드(Linux, macOS 및 Windows) (microsoft.com)
3. 프로젝트 생성
Visual Code 터미널 탭에서 SDK 버전을 확인하고 프로젝트를 생성합니다.
3 - 1 SDK 버전 확인
dotnet --info
3 - 2 프로젝트 생성
워크스페이스로 이동 후 프로젝트를 생성합니다.
dotnet new mvc -o [프로젝트 이름]
4. VS Code 확장(Extension) 설치
확장 탭에서 'asp net core' 를 입력하면 유용한 프로그램들이 표시됩니다. 개발 스타일에 따라 추가로 설치하시면 더 편한 개발이 가능합니다.
5. 프로젝트 실행
'F5' 키 또는 Run 메뉴에서 `Start Debugging` 을 선택하여 실행합니다.
반응형