- 마이크로소프트가 캐노니컬과 직접 협력
- 22.04 (Jammy) 에 기본 포함 되며, apt install dotnet6 만으로 설치 가능
- 더 작은 용량의 Chiseled Ubuntu 컨테이너 이미지도 같이 공개
- 기존 이미지에 비해 100MB 작음
WSL에서
#설치
sudo apt install dotnet6
#설치 확인
$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.108
Commit: 4e3a463d2b
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/dotnet6-6.0.108/sdk/6.0.108/
global.json file:
Not found
Host:
Version: 6.0.8
Architecture: x64
Commit: 55fb7ef977
.NET SDKs installed:
6.0.108 [/usr/lib/dotnet/dotnet6-6.0.108/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
# 닷넷 프로젝트 생성
$dotnet new console -o HelloWorldldApp
# 프로젝트 디렉토리 아래의 cs 소스 수정
$cd HelloWorldldApp
$vi Program.cs
// See https://aka.ms/new-console-template for more information
//
using System;
namespace HelloWorldApp{
class Program{
static void Main(string[] arg){
Console.WriteLine("Hello, World!");
}
}
}
#실행
$ dotnet run
Hello, World!
반응형
'Develop > study' 카테고리의 다른 글
Cursor AI (0) | 2024.11.08 |
---|---|
WSL에서 Rust 설치 (0) | 2024.01.25 |
[Hyper-v] Zorin OS (0) | 2023.02.05 |
RUST #1 at WSL (0) | 2022.09.27 |
TypeSript #1 (0) | 2022.07.13 |