Skip to content

Commit

Permalink
Feat/net6.0 upgrade (ThreeMammals#1558)
Browse files Browse the repository at this point in the history
* +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]>
  • Loading branch information
TomPallister and TGP authored Jan 20, 2022
1 parent 3dcc6b6 commit e5ee57b
Show file tree
Hide file tree
Showing 46 changed files with 255 additions and 753 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ orbs:
jobs:
build:
docker:
- image: mijitt0m/ocelot-build:0.0.3
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
steps:
- checkout
- run: make build
- run: dotnet tool restore && dotnet cake
release:
docker:
- image: mijitt0m/ocelot-build:0.0.3
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
steps:
- checkout
- run: make release
- run: dotnet tool restore && dotnet cake --target=Release
workflows:
version: 2
master:
Expand Down
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "2.0.0",
"commands": [
"dotnet-cake"
]
}
}
}
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*/*/bin
*/*/obj
artifacts/
TestResults/
TestResults/
tools/
24 changes: 0 additions & 24 deletions Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions Ocelot.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29613.14
# Visual Studio Version 17
VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5CFB79B7-C9DC-45A4-9A75-625D92471702}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ A quick list of Ocelot's capabilities for more information see the [documentatio

## How to install

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

Install Ocelot and it's dependencies using NuGet.

Expand Down
9 changes: 5 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#tool "nuget:?package=GitVersion.CommandLine&version=5.0.1"
// #tool "nuget:?package=GitVersion.CommandLine&version=5.8.1"
#tool "dotnet:?package=GitVersion.Tool&version=5.8.1"
#addin nuget:?package=Cake.Json&version=4.0.0
#addin nuget:?package=Newtonsoft.Json
#addin nuget:?package=System.Net.Http&version=4.3.4
// #addin nuget:?package=System.Net.Http&version=4.3.4
#addin nuget:?package=System.Text.Encodings.Web&version=4.7.1
#tool "nuget:?package=ReportGenerator"
#tool "nuget:?package=coveralls.net&version=0.7.0"
Expand Down Expand Up @@ -82,12 +83,12 @@ Task("Compile")
.IsDependentOn("Version")
.Does(() =>
{
var settings = new DotNetCoreBuildSettings
var settings = new DotNetBuildSettings
{
Configuration = compileConfig,
};

DotNetCoreBuild(slnFile, settings);
DotNetBuild(slnFile, settings);
});

Task("Clean")
Expand Down
256 changes: 0 additions & 256 deletions build.ps1

This file was deleted.

Loading

0 comments on commit e5ee57b

Please sign in to comment.