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

Commit

Permalink
Merge branch 'features/cake-local-tool'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Weyer committed May 31, 2020
2 parents d58f21c + a059b66 commit 1986a33
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
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": "0.37.0",
"commands": [
"dotnet-cake"
]
}
}
}
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

This is distributed via a `NuGet` package but the implementation is so simple that you can just copy the classes into your own solution if that works better for you.

:rotating_light: I'm using the legacy [WindowsAzure.Storage][windows-azure-storage] `NuGet` package, let me know if there is interest in using [Microsoft.Azure.Cosmos.Table][microsoft-azure-cosmos-table] instead.

## How it works

1. Your `TableEntity` should inherit from `UnsupportedTypesTableEntity`
Expand Down Expand Up @@ -62,7 +64,7 @@ Each read and write to `Azure Table storage` will trigger the use of `Reflection

### Pre-requisites

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

### Initial setup on Windows

Expand Down Expand Up @@ -99,3 +101,5 @@ dotnet cake build.cake
[console-screenshot]: docs/console.png
[storage-screenshot]: docs/storage.png
[dotnet-sdk]: https://dotnet.microsoft.com/download
[windows-azure-storage]: https://www.nuget.org/packages/WindowsAzure.Storage
[microsoft-azure-cosmos-table]: https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Table
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ branches:
# We'll also build whenever there is a new commit on any branch starting with `features/`
- /features\/.+/
build_script:
- ps: dotnet tool restore
- ps: dotnet cake build.cake --bootstrap
- ps: dotnet cake build.cake --pack
assembly_info:
Expand Down Expand Up @@ -51,7 +52,7 @@ deploy:
api_key:
# Encrypted `NuGet.org` token - https://www.nuget.org/account/ApiKeys
# https://www.appveyor.com/docs/deployment/nuget/#provider-settings
secure: gO++14gsWVOdYLR/xQcXJNuzWXSeiZ6PCpKWZf0uugkKTtDCAQ8Galxk4QGrSh5p
secure: GJWQFa9r9CPMzyUgy2luQqa8Yh6UnYLfuDHyG6Xb3YAiU79MpRXeBOiKnSgjD0Ac
skip_symbols: false
symbol_server: https://nuget.smbsrc.net/
artifact: packages
Expand All @@ -77,5 +78,4 @@ install:
# 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
- ps: dotnet tool install --global Cake.Tool --version 0.35.0
- ps: .\build\dotnet-install.ps1 -InstallDir 'C:\Program Files\dotnet\'
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.35.0
dotnet tool restore
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.35.0
dotnet tool restore
dotnet cake build.cake --bootstrap
dotnet cake build.cake
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#module nuget:?package=Cake.DotNetTool.Module&version=0.4.0

#tool dotnet:?package=GitVersion.Tool&version=5.1.3
#tool dotnet:?package=GitVersion.Tool&version=5.3.5

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
Expand Down
14 changes: 7 additions & 7 deletions samples/SampleConsole/SampleConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
<ProjectReference Include="..\..\src\TableStorage.UnsupportedTypes\TableStorage.UnsupportedTypes.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.4" />
<PackageReference Include="Serilog" Version="2.9.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
Expand Down

0 comments on commit 1986a33

Please sign in to comment.