From 7fffd147d64ec1fde719caec981990b2f43bf2e9 Mon Sep 17 00:00:00 2001 From: Bailey Date: Sat, 21 Jan 2023 10:30:07 -0600 Subject: [PATCH] [421] uplift to dotnet 7 (#423) * [421] uplift to dotnet 7 * update pr check --- .github/workflows/pr-check.yml | 4 ++-- .github/workflows/publish_distros_latest.yml | 2 +- .github/workflows/release.yml | 2 +- docker/Dockerfile.api | 4 ++-- docker/Dockerfile.console | 4 ++-- docker/Dockerfile.webui | 4 ++-- docs/install/source.md | 2 +- src/Api/Api.csproj | 2 +- src/Common/Common.csproj | 2 +- src/Common/Constants.cs | 2 +- src/Conversion/Conversion.csproj | 2 +- src/Garmin/Garmin.csproj | 2 +- src/Peloton/Peloton.csproj | 2 +- .../PelotonToGarminConsole.csproj | 2 +- src/Sync/Sync.csproj | 2 +- src/UnitTests/UnitTests.csproj | 2 +- src/WebUI/WebUI.csproj | 2 +- vNextReleaseNotes.md | 11 +---------- 18 files changed, 22 insertions(+), 31 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 7e5ef30ac..31d4d0715 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - dotnet: [ '6.0'] + dotnet: [ '7.0'] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -42,7 +42,7 @@ jobs: strategy: max-parallel: 1 matrix: - dotnet: [ '6.0' ] + dotnet: [ '7.0' ] os: [ 'win10-x64' ] python-version: [ 3.9.6 ] diff --git a/.github/workflows/publish_distros_latest.yml b/.github/workflows/publish_distros_latest.yml index 23c7d1ae4..b10ed110d 100644 --- a/.github/workflows/publish_distros_latest.yml +++ b/.github/workflows/publish_distros_latest.yml @@ -23,7 +23,7 @@ jobs: strategy: max-parallel: 1 matrix: - dotnet: [ '6.0' ] + dotnet: [ '7.0' ] #os: [ 'win10-x64', 'osx-x64' ] # osx signing issue, mac wont run the executable os: [ 'win10-x64' ] python-version: [ 3.9.6 ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56cb561a7..10c3f9411 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,7 +88,7 @@ jobs: strategy: max-parallel: 1 matrix: - dotnet: [ '6.0' ] + dotnet: [ '7.0' ] #os: [ 'win10-x64', 'osx-x64' ] # osx signing issue, mac wont run the executable os: [ 'win10-x64' ] python-version: [ 3.9.6 ] diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api index 9e6e6314d..792868113 100644 --- a/docker/Dockerfile.api +++ b/docker/Dockerfile.api @@ -1,7 +1,7 @@ ################### # CREATE FINAL LAYER ################### -FROM mcr.microsoft.com/dotnet/aspnet:6.0 as final +FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final ENV PYTHONUNBUFFERED=1 RUN apt-get update \ @@ -27,7 +27,7 @@ RUN mkdir -m770 {output,data,working} ################### # BUILD LAYER ################### -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build COPY . /build WORKDIR /build diff --git a/docker/Dockerfile.console b/docker/Dockerfile.console index efbe16fbd..29c9cc0c7 100644 --- a/docker/Dockerfile.console +++ b/docker/Dockerfile.console @@ -1,7 +1,7 @@ ################### # CREATE FINAL LAYER ################### -FROM mcr.microsoft.com/dotnet/aspnet:6.0 as final +FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final ENV PYTHONUNBUFFERED=1 RUN apt-get update \ @@ -27,7 +27,7 @@ RUN mkdir -m770 {output,data,working} ################### # BUILD LAYER ################### -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build COPY . /build WORKDIR /build diff --git a/docker/Dockerfile.webui b/docker/Dockerfile.webui index 4f7ecd21c..49b14474e 100644 --- a/docker/Dockerfile.webui +++ b/docker/Dockerfile.webui @@ -1,7 +1,7 @@ ################### # CREATE FINAL LAYER ################### -FROM mcr.microsoft.com/dotnet/aspnet:6.0 as final +FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final RUN apt-get update \ && apt-get -y install bash tzdata \ @@ -17,7 +17,7 @@ WORKDIR /app ################### # BUILD LAYER ################### -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build COPY . /build WORKDIR /build diff --git a/docs/install/source.md b/docs/install/source.md index 2095666cd..28d59ffdf 100644 --- a/docs/install/source.md +++ b/docs/install/source.md @@ -11,7 +11,7 @@ To compile and run P2G on your machine, follow the below steps. ## dotnet 6.0 -1. Install the latest [dotnet 6.0 SDK](https://dotnet.microsoft.com/download/dotnet/6.0) +1. Install the latest [dotnet 7.0 SDK](https://dotnet.microsoft.com/download/dotnet/7.0) 1. Clone the GitHub repository locally 1. In the local repo, find the file named `configuration.example.json`. Make a copy of it and name it `configuration.local.json`. 1. Move `configuration.local.json` into the `src/PelotongToGarminConsole` directory diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj index d3938c5b7..1561a2c9f 100644 --- a/src/Api/Api.csproj +++ b/src/Api/Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 PelotonToGarmin.Api enable enable diff --git a/src/Common/Common.csproj b/src/Common/Common.csproj index a0380309c..8b98ff668 100644 --- a/src/Common/Common.csproj +++ b/src/Common/Common.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 true $(NoWarn);1591 diff --git a/src/Common/Constants.cs b/src/Common/Constants.cs index 7522cfb01..4459dc7ac 100644 --- a/src/Common/Constants.cs +++ b/src/Common/Constants.cs @@ -8,6 +8,6 @@ public static class Constants public const string ApiName = "p2g_api"; public const string WebUIName = "p2g_webui"; - public const string AppVersion = "3.3.1"; + public const string AppVersion = "4.0.0-rc"; } } diff --git a/src/Conversion/Conversion.csproj b/src/Conversion/Conversion.csproj index 2328dc1b2..44c2bcc47 100644 --- a/src/Conversion/Conversion.csproj +++ b/src/Conversion/Conversion.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 true $(NoWarn);1591 diff --git a/src/Garmin/Garmin.csproj b/src/Garmin/Garmin.csproj index feaf35d9d..6f46c961a 100644 --- a/src/Garmin/Garmin.csproj +++ b/src/Garmin/Garmin.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 true $(NoWarn);1591 diff --git a/src/Peloton/Peloton.csproj b/src/Peloton/Peloton.csproj index 71b8f4d36..25110eccb 100644 --- a/src/Peloton/Peloton.csproj +++ b/src/Peloton/Peloton.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 true $(NoWarn);1591 diff --git a/src/PelotonToGarminConsole/PelotonToGarminConsole.csproj b/src/PelotonToGarminConsole/PelotonToGarminConsole.csproj index 6c0181800..482f65aee 100644 --- a/src/PelotonToGarminConsole/PelotonToGarminConsole.csproj +++ b/src/PelotonToGarminConsole/PelotonToGarminConsole.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net7.0 PelotonToGarminConsole PelotonToGarminConsole win10-x64;osx-x64;linux-x64 diff --git a/src/Sync/Sync.csproj b/src/Sync/Sync.csproj index d5c20a25c..3e197f41a 100644 --- a/src/Sync/Sync.csproj +++ b/src/Sync/Sync.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 enable true $(NoWarn);1591 diff --git a/src/UnitTests/UnitTests.csproj b/src/UnitTests/UnitTests.csproj index a0b9fc8a9..93c26d4cb 100644 --- a/src/UnitTests/UnitTests.csproj +++ b/src/UnitTests/UnitTests.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 false diff --git a/src/WebUI/WebUI.csproj b/src/WebUI/WebUI.csproj index 29a4461ca..7e5bb994e 100644 --- a/src/WebUI/WebUI.csproj +++ b/src/WebUI/WebUI.csproj @@ -1,7 +1,7 @@  - net6.0 + net7.0 enable enable win10-x64;osx-x64;linux-x64 diff --git a/vNextReleaseNotes.md b/vNextReleaseNotes.md index 6f5fe184a..d0ed915ce 100644 --- a/vNextReleaseNotes.md +++ b/vNextReleaseNotes.md @@ -3,14 +3,5 @@ ## Features -- [#406] WebUI - New page to view more detailed progress towards Annual Challenge Badges +- [#421] Uplift to dotnet 7 -## Fixes - -- [#404] Fixed where outdoor Just walk/Just run could be missing GPS data on Garmin Connect -- [#411] WebUI - Fixed issue where custom DeviceInfo file path could not be saved -- [#414] Fixed calories missing on Garmin Connect when provided by Apple Watch - -## Changes - -- [#402] [housekeeping] Dependency bumps