λ³€ν™˜ λŒ€μƒμ€ .NET Core 3.1 을 μ‚¬μš©ν•΄μ„œ μž‘μ„±λœ μ‘μš©ν”„λ‘œκ·Έλž¨μž…λ‹ˆλ‹€.

전체 μ½”λ“œλŠ” 340eb28b1ea510a2c59e8627659cd81b689b7244 μ»€λ°‹μ—μ„œ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

Commit <> 340eb28b1ea510a2c59e8627659cd81b689b7244

.NET Core 3.1 을 μ‚¬μš©ν•΄μ„œ μž‘μ„±λœ μ‘μš©ν”„λ‘œκ·Έλž¨μ„ .NET 5λ₯Ό μ‚¬μš©ν•˜λŠ” μ‘μš©ν”„λ‘œκ·Έλž¨μœΌλ‘œ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ν•˜λ €λ©΄, μ†”λ£¨μ…˜μ˜ λͺ¨λ“  ν”„λ‘œμ νŠΈμ˜ λŒ€μƒ ν”„λ ˆμž„μ›Œν¬λ₯Ό net5.0으둜 λ³€κ²½ν•˜κ³ , 의쑴 νŒ¨ν‚€μ§€λ₯Ό .NET 5 ν˜Έν™˜ λ²„μ „μœΌλ‘œ μ—…λ°μ΄νŠΈν•˜λ©΄ λ©λ‹ˆλ‹€.

의쑴 νŒ¨ν‚€μ§€κ°€ .NET 5 λ₯Ό μ§€μ›ν•˜μ§€ μ•ŠλŠ” κ²½μš°κ°€ μ•„λ‹ˆλΌλ©΄ 큰 λ¬Έμ œμ—†μ΄ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜μ„ 마칠 수 μžˆμ„ 것이라 μƒκ°ν•©λ‹ˆλ‹€.

λŒ€μƒ ν”„λ ˆμž„μ›Œν¬ λ³€κ²½

μ†”λ£¨μ…˜ νŒŒμΌμ„ Visual Studio μ—μ„œ μ—΄κ³ , ν¬ν•¨λœ ν”„λ‘œμ νŠΈμ˜ λŒ€μƒ ν”„λ ˆμž„μ›Œν¬ TargetFrameworkλ₯Ό μ•„λž˜ ν‘œμ™€ 같이 net5.0으둜 λ³€κ²½ν•©λ‹ˆλ‹€.

이전 λŒ€μƒ ν”„λ ˆμž„μ›Œν¬ λ³€κ²½ λŒ€μƒ ν”„λ ˆμž„μ›Œν¬
netstandard2.1 net5.0
netcoreapp3.0 net5.0
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
  </PropertyGroup>
</Project>

Nuget νŒ¨ν‚€μ§€ μ—…λ°μ΄νŠΈ

μ˜μ‘΄ν•˜λŠ” λͺ¨λ“  Nuget νŒ¨ν‚€μ§€λ₯Ό .NET 5 ν˜Έν™˜ κ°€λŠ₯ν•œ λ²„μ „μœΌλ‘œ μ—…λ°μ΄νŠΈν•©λ‹ˆλ‹€.

Docker 이미지 λ³€κ²½

build-time image: mcr.microsoft.com/dotnet/sdk:5.0 run-time image: mcr.microsoft.com/dotnet/runtime:5.0

도컀 이미지 μ •λ³΄λŠ” μ•„λž˜ .NET Runtime - Docker Hub νŽ˜μ΄μ§€μ—μ„œ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

.NET Runtime - Docker Hub

.NET Runtime - Docker Hub νŽ˜μ΄μ§€μ—μ„œ κ΄€λ ¨ μ €μž₯μ†Œλ₯Ό ν™•μΈν•˜μ„Έμš”.

μ•„λž˜λŠ” .NET 5 ν”„λ‘œμ νŠΈμ—μ„œ μ‚¬μš©λ˜λŠ” λ„μ»€νŒŒμΌ μ˜ˆμ œμž…λ‹ˆλ‹€.

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /app

# copy csproj and restore as distinct layers
COPY . .
RUN dotnet restore

# copy everything else and build app
RUN cd Bing.Wallpaper.Service.App && dotnet publish -c Release -o /app/out

FROM mcr.microsoft.com/dotnet/runtime:5.0 AS runtime
WORKDIR /app
COPY --from=build /app/out ./
ENTRYPOINT ["dotnet", "Bing.Wallpaper.Service.App.dll"]

확인

의쑴 νŒ¨ν‚€μ§€κ°€ .NET 5 ν˜Έν™˜ κ°€λŠ₯ν•œ 버전이 μ‘΄μž¬ν•΄μ„œ 큰 λ¬Έμ œμ—†μ΄ λ³€κ²½λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

Commit <> d3151bedcadefdcbf7c144c568a871c7718a94cb