Skip to content

Commit

Permalink
Merge pull request Liminiens#36
Browse files Browse the repository at this point in the history
* migrating to net5
  • Loading branch information
Szer authored Dec 10, 2020
1 parent 203763e commit 0ddfd3d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build-dotnet
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-dotnet
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.sln ./
Expand All @@ -20,7 +20,7 @@ RUN dotnet test -c Release -r linux-x64 -o out --no-restore --verbosity normal
RUN dotnet publish -r linux-x64 -c Release -o out

# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:3.1
FROM mcr.microsoft.com/dotnet/runtime:5.0

EXPOSE 80

Expand Down
2 changes: 0 additions & 2 deletions Grinder.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{25990364-33CE-
ProjectSection(SolutionItems) = preProject
docker-compose.yml = docker-compose.yml
Dockerfile = Dockerfile
azure-pipelines.yml = azure-pipelines.yml
x86.Dockerfile = x86.Dockerfile
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{3AB38C70-1DF4-48D9-992B-B7BFBFDDFD7A}"
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ Telegram bot for chats administration.

## Configuration and build

Just open project with Rider/VS 2019 and run build
- Install Net5 SDK

or use dotnet cli
- Open project with Rider/VS 2019 and run build

- or use dotnet cli

```bash
dotnet build
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "3.1.300"
"version": "5.0.101"
}
}
4 changes: 2 additions & 2 deletions src/Grinder.Common/Grinder.Common.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>net5</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
</PropertyGroup>
Expand All @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FSharp.Core" Version="4.6.2" />
<PackageReference Update="FSharp.Core" Version="5.0.0" />
<PackageReference Include="TaskBuilder.fs" Version="2.1.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Grinder.DataAccess/Grinder.DataAccess.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5</TargetFramework>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Grinder.ExportTool/Grinder.ExportTool.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5</TargetFramework>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
</PropertyGroup>
Expand All @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
<PackageReference Include="FSharp.Core" Version="4.6.2" />
<PackageReference Update="FSharp.Core" Version="5.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="TDLib" Version="1.3.0" />
<PackageReference Include="tdlib.native" Version="1.3.0" />
Expand Down
4 changes: 2 additions & 2 deletions src/Grinder/Grinder.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5</TargetFramework>
<ServerGarbageCollection>false</ServerGarbageCollection>
<TieredCompilation>true</TieredCompilation>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
Expand All @@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="FParsec" Version="1.0.3" />
<PackageReference Include="FSharp.Core" Version="4.6.2" />
<PackageReference Update="FSharp.Core" Version="5.0.0" />
<PackageReference Include="FSharp.UMX" Version="1.0.0-preview-001" />
<PackageReference Include="Funogram" Version="1.3.1" />
<PackageReference Include="HttpToSocks5Proxy" Version="1.1.3" />
Expand Down
4 changes: 2 additions & 2 deletions tests/Grinder.Tests/Grinder.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
<IsPackable>false</IsPackable>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
Expand All @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FSharp.Core" Version="4.6.2" />
<PackageReference Update="FSharp.Core" Version="5.0.0" />
<PackageReference Include="Foq" Version="1.8.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
Expand Down

0 comments on commit 0ddfd3d

Please sign in to comment.