Skip to content

Commit b8efbe4

Browse files
committed
Updating for .net 6
1 parent 1b3892b commit b8efbe4

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: mcr.microsoft.com/dotnet/core/sdk:3.1
5+
- image: mcr.microsoft.com/dotnet/sdk:6.0
66
steps:
77
- checkout
88
- run: dotnet build ./Web/QueryTree.csproj -v n
99
test:
1010
docker:
11-
- image: mcr.microsoft.com/dotnet/core/sdk:3.1
11+
- image: mcr.microsoft.com/dotnet/sdk:6.0
1212
steps:
1313
- checkout
1414
- run: dotnet test ./Tests/Tests.csproj -v n

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder
1+
FROM mcr.microsoft.com/dotnet/sdk:6.0 as builder
22
WORKDIR /build
33
COPY . .
44
RUN dotnet restore
55
RUN dotnet publish --no-restore -c Release ./Web/QueryTree.csproj -o /dist
66

7-
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 as runtime
7+
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as runtime
88
WORKDIR /app
99
COPY --from=builder /dist .
1010
COPY --from=builder /build/Web/EmailTemplates ./EmailTemplates

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ for more information.
4444

4545
### Prerequisites
4646

47-
To build binaries or run from source you need the [.NET Core SDK v3.1](https://www.microsoft.com/net/download) installed.
47+
To build binaries or run from source you need the [.NET 6.0](https://www.microsoft.com/net/download) installed.
4848

4949
### Running from Source
5050

@@ -83,7 +83,7 @@ This will create a release folder in `dist` of all the unpacked QueryTree binari
8383

8484
### Running from Binaries
8585

86-
To run QueryTree on your server you will need to install the .NET Core 3.1.x runtime. (It is not necessary to install the full .NET SDK, just the runtime.) You can download the installer [here](https://www.microsoft.com/net/download/core#/runtime).
86+
To run QueryTree on your server you will need to install the ASP.NET Core Runtime 6.0.x. (It is not necessary to install the full .NET SDK, just the runtime.) You can download the installer [here](https://dotnet.microsoft.com/en-us/download/dotnet/6.0).
8787

8888
To verify that you have the .NET runtime installed, open a terminal/cmd window and type
8989

Tests/Tests.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
9-
<PackageReference Include="xunit" Version="2.3.1" />
10-
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
8+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
9+
<PackageReference Include="xunit" Version="2.4.2" />
10+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
11+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12+
<PrivateAssets>all</PrivateAssets>
13+
</PackageReference>
1114
</ItemGroup>
1215

1316
<ItemGroup>

Web/QueryTree.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
4141
<PackageReference Include="Npgsql" Version="6.0.7" />
4242
<PackageReference Include="MySql.Data" Version="8.0.31" />
43-
<PackageReference Include="Hangfire" Version="1.7.31" />
43+
<PackageReference Include="Hangfire" Version="1.7.32" />
4444
<PackageReference Include="SSH.NET" Version="2020.0.2" />
4545
<PackageReference Include="MailKit" Version="2.1.3" />
4646
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.11">

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 3.0.{build}-beta
22
branches:
33
only:
44
- master
5-
image: Visual Studio 2017
5+
image: Visual Studio 2019
66
dotnet_csproj:
77
patch: true
88
file: 'Web\QueryTree.csproj'

0 commit comments

Comments
 (0)