Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Upgrade to .NET Core 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Weyer committed Dec 29, 2019
1 parent 01e828b commit 7002542
Show file tree
Hide file tree
Showing 11 changed files with 289 additions and 352 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

| CI | Status | Platform(s) | Framework(s) | Test Framework(s) |
| --- | --- | --- | --- | --- |
| [AppVeyor][app-veyor] | [![Build Status][app-veyor-shield]][app-veyor] | `Windows` | `nestandard2.0` | `netcoreapp2.2.2` |
| [AppVeyor][app-veyor] | [![Build Status][app-veyor-shield]][app-veyor] | `Windows` | `nestandard2.0` | `netcoreapp3.1` |

[Azure Table storage][table-storage] supports a [limited set of data types][supported-types] (namely `byte[]`, `bool`, `DateTime`, `double`, `Guid`, `int`, `long` and `string`). `Unsupported Types` allows to store unsupported data types with some limitations:

Expand Down Expand Up @@ -62,11 +62,11 @@ Each read and write to `Azure Table storage` will trigger the use of `Reflection

### Pre-requisites

- [.NET Core SDK v2.2.104][dotnet-sdk] and higher
- [.NET Core SDK v3.1.100][dotnet-sdk] and higher

### Initial setup on Windows

```posh
```powershell
.\bootstrap.ps1
```

Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: Visual Studio 2017
image: Visual Studio 2019
branches:
only:
- master
Expand Down Expand Up @@ -74,8 +74,8 @@ environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# `install` will run before `build_script`
install:
# Cake build is targeting `.NET Core` `2.2.0`, so we can safely install the latest `SDK`
# Unsupported Types build is targeting `netstandard2.0`, so we can safely install the LTS `SDK`
# The `SDK` is required to restore, build, publish... a `.NET Core` application
# https://www.microsoft.com/net/download/windows
- ps: .\build\dotnet-install.ps1 -Channel 2.2 -Version 2.2.104
- ps: dotnet tool install --global Cake.Tool --version 0.31.0
- ps: .\build\dotnet-install.ps1
- ps: dotnet tool install --global Cake.Tool --version 0.35.0
2 changes: 1 addition & 1 deletion bootstrap.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dotnet tool install Cake.Tool --global --version 0.31.0
dotnet tool install Cake.Tool --global --version 0.35.0
dotnet cake build.cake --bootstrap
dotnet cake build.cake
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dotnet tool install Cake.Tool --global --version 0.31.0
dotnet tool install Cake.Tool --global --version 0.35.0
dotnet cake build.cake --bootstrap
dotnet cake build.cake
19 changes: 9 additions & 10 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#module nuget:?package=Cake.DotNetTool.Module&version=0.1.0
#module nuget:?package=Cake.DotNetTool.Module&version=0.4.0

#tool dotnet:?package=GitVersion.Tool&version=4.0.1-beta1-58
#tool dotnet:?package=GitVersion.Tool&version=5.1.3

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
Expand Down Expand Up @@ -78,21 +78,20 @@ Task("Test")
.IsDependentOn("Build")
.Does(() =>
{
var settings = new DotNetCoreToolSettings();
var argumentsBuilder = new ProcessArgumentBuilder()
.Append("-configuration")
.Append(configuration)
.Append("-nobuild");
var settings = new DotNetCoreTestSettings
{
Configuration = configuration,
NoBuild = true
};
var projectFiles = GetFiles("./tests/*/*.Tests.csproj");
foreach (var projectFile in projectFiles)
{
var testResultsFile = testsResultsDir.Combine($"{projectFile.GetFilenameWithoutExtension()}.xml");
var arguments = $"{argumentsBuilder.Render()} -xml \"{testResultsFile}\"";
settings.Logger = $"\"xunit;LogFilePath={testResultsFile}\"";
DotNetCoreTool(projectFile, "xunit", arguments, settings);
DotNetCoreTest(projectFile.FullPath, settings);
}
});

Expand Down
233 changes: 0 additions & 233 deletions build.ps1

This file was deleted.

Loading

0 comments on commit 7002542

Please sign in to comment.