Skip to content

Commit

Permalink
feat: migrate from ASP.NET Core 3.1 to 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailMasny committed May 18, 2021
1 parent 80e96a4 commit 6cb5bd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Masny.Bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["Masny.Bot.csproj", "Masny.Bot/"]
RUN dotnet restore "Masny.Bot/Masny.Bot.csproj"
Expand Down
4 changes: 2 additions & 2 deletions src/Masny.Bot/Masny.Bot.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<UserSecretsId>fb926161-5b19-4762-aed6-a6d39ffa636e</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..</DockerfileContext>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="is.gd" Version="1.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.6" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" />
<PackageReference Include="Telegram.Bot" Version="15.7.1" />
</ItemGroup>
Expand Down

0 comments on commit 6cb5bd0

Please sign in to comment.