VScode(Visual Studio code)에서 C#으로 개발하기 위해서 C# extension 및  .NET SDK를 설치해야 한다.

C#으로 개발할 수 있는 종류는 아래와 같다.

 

템플릿 이름           약식 이름                   언어        태그
--------------------  --------------------------  ----------  -------------------------- 
API 컨트롤러          apicontroller               [C#]        Web/ASP.NET
ASP.NET Core gRPC...  grpc                        [C#]        Web/gRPC/API/Service       
ASP.NET Core 비어...  web                         [C#],F#     Web/Empty
ASP.NET Core 웹 API   webapi                      [C#],F#     Web/Web API/API/Service    
ASP.NET Core 웹 A...  webapiaot                   [C#]        Web/Web API/API/Service    
ASP.NET Core 웹앱     webapp,razor                [C#]        Web/MVC/Razor Pages        
ASP.NET Core 웹앱...  mvc                         [C#],F#     Web/MVC
Blazor WebAssembl...  blazorwasm                  [C#]        Web/Blazor/WebAssembly/PWA 
Blazor 웹앱           blazor                      [C#]        Web/Blazor/WebAssembly     
MSTest Playwright...  mstest-playwright           [C#]        Test/MSTest/Playwright     
MSTest Test Project   mstest                      [C#],F#,VB  Test/MSTest
MVC ViewImports       viewimports                 [C#]        Web/ASP.NET
MVC ViewStart         viewstart                   [C#]        Web/ASP.NET
MVC 컨트롤러          mvccontroller               [C#]        Web/ASP.NET
NuGet 구성            nugetconfig,nuget.config                Config
NUnit 3 Test Item     nunit-test                  [C#],F#,VB  Test/NUnit
NUnit 3 Test Project  nunit                       [C#],F#,VB  Test/NUnit
NUnit Playwright ...  nunit-playwright            [C#]        Test/NUnit/Playwright      
Razor 구성 요소       razorcomponent              [C#]        Web/ASP.NET
Razor 뷰              view                        [C#]        Web/ASP.NET
Razor 클래스 라이...  razorclasslib               [C#]        Web/Razor/Library
Razor 페이지          page                        [C#]        Web/ASP.NET
Windows Forms 앱      winforms                    [C#],VB     Common/WinForms
Windows Forms 컨...   winformscontrollib          [C#],VB     Common/WinForms
Windows Forms 클...   winformslib                 [C#],VB     Common/WinForms
WPF 사용자 정의 ...   wpfusercontrollib           [C#],VB     Common/WPF
WPF 사용자 지정 ...   wpfcustomcontrollib         [C#],VB     Common/WPF
WPF 애플리케이션      wpf                         [C#],VB     Common/WPF
WPF 클래스 라이브...  wpflib                      [C#],VB     Common/WPF
xUnit Test Project    xunit                       [C#],F#,VB  Test/xUnit
구조체                struct,structure            [C#],VB     Common
레코드                record                      [C#]        Common
솔루션 파일           sln,solution                            Solution
열거형                enum                        [C#],VB     Common
웹 구성               webconfig                               Config
인터페이스            interface                   [C#],VB     Common
작업자 서비스         worker                      [C#],F#     Common/Worker/Web
콘솔 앱               console                     [C#],F#,VB  Common/Console
클래스                class                       [C#],VB     Common
클래스 라이브러리     classlib                    [C#],F#,VB  Common/Library

 

이중에서 winform를 생성해서 실행까지해보려고 한다.

 

※ 설치 순서

 

1. 확장 C# 설치

2. Net SDK 설치

3. 폴드 생성 및 폴드 열기

4. VScode 터미널에 dotnet new winforms 입력

5. From1.cs 를 수정한다.

6. VScode 터미널에 dotnet run 입력하여 실행한다.

 

  설치 화면

 

 

https://dotnet.microsoft.com/ko-kr/download/dotnet/8.0

 

 

 

 

 

 

 

dotnet new winforms

 

dotnet run

728x90

+ Recent posts