From 5a9129b9c40ef7b418853553bebf4fbae26e7bb7 Mon Sep 17 00:00:00 2001 From: Matthias Beerens <3512339+Matthiee@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:50:38 +0100 Subject: [PATCH] Upgrade to .NET 8.0 (#109) * Update to .NET 8.0 * Update github workflow * Bump microsoft packages to 8.0.0 * Update other package dependencies * Fix wrong type used in volume --- .github/workflows/dotnet.yml | 4 ++-- .../FinancialModelingPrepApi.csproj | 8 +++---- .../Crypto/CyptoHistoricalPriceListings.cs | 2 +- Tests/Tests.csproj | 22 +++++++++---------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index fa7b6de..65186cb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,9 +16,9 @@ jobs: with: fetch-depth: 0 - name: Setup .NET - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.x + dotnet-version: 8.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/FinancialModelingPrepApi/FinancialModelingPrepApi.csproj b/FinancialModelingPrepApi/FinancialModelingPrepApi.csproj index 2479e26..e1df3e5 100644 --- a/FinancialModelingPrepApi/FinancialModelingPrepApi.csproj +++ b/FinancialModelingPrepApi/FinancialModelingPrepApi.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0 + net7.0;net8.0 MatthiWare.FinancialModelingPrep False True @@ -27,9 +27,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/FinancialModelingPrepApi/Model/Crypto/CyptoHistoricalPriceListings.cs b/FinancialModelingPrepApi/Model/Crypto/CyptoHistoricalPriceListings.cs index 6c4fa56..1cc3f31 100644 --- a/FinancialModelingPrepApi/Model/Crypto/CyptoHistoricalPriceListings.cs +++ b/FinancialModelingPrepApi/Model/Crypto/CyptoHistoricalPriceListings.cs @@ -25,7 +25,7 @@ public class CryptoHistoricalPricePeriodListing public decimal Close { get; set; } [JsonPropertyName("volume")] - public long Volume { get; set; } + public double Volume { get; set; } } public class CyptoHistoricalPriceDailyListing diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 5afeea4..5c9ed54 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,22 +1,22 @@ - net7.0 + net8.0 false - - - - - - - - - - + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all