Skip to content

Commit e5ee57b

Browse files
TomPallisterTGP
and
TGP
authored
Feat/net6.0 upgrade (#1558)
* +semver: major upgrading from net5.0 to net6.0 * packages upgraded * removed global.json for ocelot sf sample * update build image * test new build * remove make * fix tests * make test fail like in CI * tests passing locally * updated docs Co-authored-by: TGP <[email protected]>
1 parent 3dcc6b6 commit e5ee57b

File tree

46 files changed

+255
-753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+255
-753
lines changed

Diff for: .circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ orbs:
44
jobs:
55
build:
66
docker:
7-
- image: mijitt0m/ocelot-build:0.0.3
7+
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
88
steps:
99
- checkout
10-
- run: make build
10+
- run: dotnet tool restore && dotnet cake
1111
release:
1212
docker:
13-
- image: mijitt0m/ocelot-build:0.0.3
13+
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
1414
steps:
1515
- checkout
16-
- run: make release
16+
- run: dotnet tool restore && dotnet cake --target=Release
1717
workflows:
1818
version: 2
1919
master:

Diff for: .config/dotnet-tools.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"cake.tool": {
6+
"version": "2.0.0",
7+
"commands": [
8+
"dotnet-cake"
9+
]
10+
}
11+
}
12+
}

Diff for: .dockerignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*/*/bin
22
*/*/obj
33
artifacts/
4-
TestResults/
4+
TestResults/
5+
tools/

Diff for: Makefile

-24
This file was deleted.

Diff for: Ocelot.sln

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29613.14
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.32112.339
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5CFB79B7-C9DC-45A4-9A75-625D92471702}"
77
EndProject

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ A quick list of Ocelot's capabilities for more information see the [documentatio
4343

4444
## How to install
4545

46-
Ocelot is designed to work with ASP.NET Core only and it targets `netcoreapp3.1`.
46+
Ocelot is designed to work with ASP.NET and it targets `net6.0`.
4747

4848
Install Ocelot and it's dependencies using NuGet.
4949

Diff for: build.cake

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#tool "nuget:?package=GitVersion.CommandLine&version=5.0.1"
1+
// #tool "nuget:?package=GitVersion.CommandLine&version=5.8.1"
2+
#tool "dotnet:?package=GitVersion.Tool&version=5.8.1"
23
#addin nuget:?package=Cake.Json&version=4.0.0
34
#addin nuget:?package=Newtonsoft.Json
4-
#addin nuget:?package=System.Net.Http&version=4.3.4
5+
// #addin nuget:?package=System.Net.Http&version=4.3.4
56
#addin nuget:?package=System.Text.Encodings.Web&version=4.7.1
67
#tool "nuget:?package=ReportGenerator"
78
#tool "nuget:?package=coveralls.net&version=0.7.0"
@@ -82,12 +83,12 @@ Task("Compile")
8283
.IsDependentOn("Version")
8384
.Does(() =>
8485
{
85-
var settings = new DotNetCoreBuildSettings
86+
var settings = new DotNetBuildSettings
8687
{
8788
Configuration = compileConfig,
8889
};
8990

90-
DotNetCoreBuild(slnFile, settings);
91+
DotNetBuild(slnFile, settings);
9192
});
9293

9394
Task("Clean")

Diff for: build.ps1

-256
This file was deleted.

0 commit comments

Comments
 (0)