From ba093f2345dfa3fb6b3ec0dccaf6ec29442badf0 Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Wed, 11 Oct 2023 23:11:33 +0900 Subject: [PATCH 1/8] upgrade .net to .net 8.0 Signed-off-by: Takuya Iwatsuka --- .devcontainer/Dockerfile | 2 +- .github/workflows/1-pr.yaml | 18 +++++++++--------- .github/workflows/dev_carbon-aware-api.yml | 2 +- .vscode/launch.json | 4 ++-- casdk-docs/docs/overview/overview.md | 4 ++-- casdk-docs/docs/quickstart.md | 2 +- .../tutorial-basics/carbon-aware-webapi.md | 8 ++++---- .../docs/tutorial-extras/configuration.md | 6 +++--- casdk-docs/docs/tutorial-extras/packaging.md | 2 +- .../ConsoleApp/ConsoleApp.csproj | 2 +- src/CarbonAware.CLI/src/CarbonAware.CLI.csproj | 2 +- src/CarbonAware.CLI/src/Dockerfile | 6 +++--- .../CarbonAware.CLI.IntegrationTests.csproj | 2 +- .../unitTests/CarbonAware.CLI.UnitTests.csproj | 2 +- ...re.DataSources.ElectricityMaps.Mocks.csproj | 2 +- ...bonAware.DataSources.ElectricityMaps.csproj | 2 +- ...re.DataSources.ElectricityMaps.Tests.csproj | 2 +- ...ataSources.ElectricityMapsFree.Mocks.csproj | 2 +- ...ware.DataSources.ElectricityMapsFree.csproj | 2 +- ...ataSources.ElectricityMapsFree.Tests.csproj | 2 +- .../CarbonAware.DataSources.Json.Mocks.csproj | 2 +- .../src/CarbonAware.DataSources.Json.csproj | 2 +- .../CarbonAware.DataSources.Json.Tests.csproj | 2 +- ...CarbonAware.DataSources.Registration.csproj | 2 +- ...rbonAware.DataSources.WattTime.Mocks.csproj | 2 +- .../CarbonAware.DataSources.WattTime.csproj | 2 +- ...rbonAware.DataSources.WattTime.Tests.csproj | 2 +- .../src/CarbonAware.LocationSources.csproj | 2 +- .../CarbonAware.LocationSources.Test.csproj | 2 +- ...are.Tools.AWSRegionTestDataGenerator.csproj | 2 +- ...e.Tools.AzureRegionTestDataGenerator.csproj | 2 +- .../src/CarbonAware.WebApi.csproj | 2 +- src/CarbonAware.WebApi/src/Dockerfile | 4 ++-- src/CarbonAware.WebApi/src/Program.cs | 2 +- .../CarbonAware.WebApi.IntegrationTests.csproj | 2 +- .../CarbonAware.WebApi.UnitTests.csproj | 2 +- src/CarbonAware/src/CarbonAware.csproj | 2 +- src/CarbonAware/test/CarbonAware.Tests.csproj | 2 +- src/GSF.CarbonAware/src/GSF.CarbonAware.csproj | 6 +++--- .../src/GSF.CarbonAware.targets | 2 +- .../test/GSF.CarbonAware.Tests.csproj | 2 +- src/clients/docker-generate-clients.sh | 2 +- src/clients/generate-clients.sh | 2 +- src/clients/tests/csharp/Dockerfile | 4 ++-- src/clients/tests/csharp/csharp.csproj | 6 +++--- 45 files changed, 68 insertions(+), 68 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 78dfac3a7..1b69a04c8 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 +FROM mcr.microsoft.com/dotnet/sdk:8.0 RUN apt-get update diff --git a/.github/workflows/1-pr.yaml b/.github/workflows/1-pr.yaml index c6d8f9f44..8b4103cd4 100644 --- a/.github/workflows/1-pr.yaml +++ b/.github/workflows/1-pr.yaml @@ -8,7 +8,7 @@ env: # web app DOCKERFILE_PATH: "CarbonAware.WebApi/src/Dockerfile" HEALTH_ENDPOINT: "0.0.0.0:8080/health" - DLL_FILE_PATH: "./bin/Release/net6.0/CarbonAware.WebApi.dll" + DLL_FILE_PATH: "./bin/Release/net8.0/CarbonAware.WebApi.dll" DOTNET_SRC_DIR: "./src" # console app packages DOTNET_SOLUTION: "src/GSF.CarbonAware/src/GSF.CarbonAware.csproj" @@ -42,7 +42,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -86,14 +86,14 @@ jobs: needs: sln-build-and-test runs-on: ubuntu-latest container: - image: mcr.microsoft.com/dotnet/sdk:6.0 + image: mcr.microsoft.com/dotnet/sdk:8.0 steps: - uses: actions/checkout@v3 - - name: Setup .NET Core SDK 6 + - name: Setup .NET Core SDK 8 uses: actions/setup-dotnet@v2 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' include-prerelease: false - name: Install dependencies @@ -164,10 +164,10 @@ jobs: uses: actions/checkout@v3 with: ref: dev - - name: Setup .NET Core SDK 6 + - name: Setup .NET Core SDK 8 uses: actions/setup-dotnet@v2 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' include-prerelease: false - name: Install dependencies run: dotnet restore @@ -199,10 +199,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Setup .NET Core SDK 6 + - name: Setup .NET Core SDK 8 uses: actions/setup-dotnet@v2 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' include-prerelease: false - name: Create packages diff --git a/.github/workflows/dev_carbon-aware-api.yml b/.github/workflows/dev_carbon-aware-api.yml index 643d58b8d..f1c4dc4ae 100644 --- a/.github/workflows/dev_carbon-aware-api.yml +++ b/.github/workflows/dev_carbon-aware-api.yml @@ -20,7 +20,7 @@ jobs: - name: Set up .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' include-prerelease: true - name: Build with dotnet diff --git a/.vscode/launch.json b/.vscode/launch.json index 7df71697f..8921c133f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "buildCLI", - "program": "${workspaceFolder}/src/CarbonAware.CLI/src/bin/Debug/net6.0/caw.dll", + "program": "${workspaceFolder}/src/CarbonAware.CLI/src/bin/Debug/net8.0/caw.dll", "args": [ "emissions", "--location", "${input:caw_location}" @@ -27,7 +27,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "buildWebApi", - "program": "${workspaceFolder}/src/CarbonAware.WebApi/src/bin/Debug/net6.0/CarbonAware.WebApi.dll", + "program": "${workspaceFolder}/src/CarbonAware.WebApi/src/bin/Debug/net8.0/CarbonAware.WebApi.dll", "args": [], "cwd": "${workspaceFolder}/src/CarbonAware.WebApi/src/", "stopAtEntry": false, diff --git a/casdk-docs/docs/overview/overview.md b/casdk-docs/docs/overview/overview.md index 915c718b6..1034a21f8 100644 --- a/casdk-docs/docs/overview/overview.md +++ b/casdk-docs/docs/overview/overview.md @@ -135,7 +135,7 @@ using environment variables, you'd do this: #### Local project settings For local-only settings you can use environment variables, -[the Secret Manager tool](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-6.0&tabs=windows#secret-manager) +[the Secret Manager tool](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0&tabs=windows#secret-manager) , or an untracked Development appsettings file to override the default project settings. @@ -145,7 +145,7 @@ remove the first line of (invalid) comments. Then update any settings according to your preferences. > Wherever possible, the projects leverage the -> [default .NET configuration](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-6.0#default-application-configuration-sources) +> [default .NET configuration](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0#default-application-configuration-sources) > expectations. Thus, they can be configured using any file matching the format: > `appsettings..json`. Where `` is the value of the > `ASPNETCORE_ENVIRONMENT` environment variable. By convention projects tend to diff --git a/casdk-docs/docs/quickstart.md b/casdk-docs/docs/quickstart.md index ab86b4d97..90e271240 100644 --- a/casdk-docs/docs/quickstart.md +++ b/casdk-docs/docs/quickstart.md @@ -18,7 +18,7 @@ generated libraries for your language of choice! Prerequisites: -- .NET Core 6.0 +- .NET Core 8.0 - Alternatively: - Docker - VSCode (it is recommended to work in a Dev Container) diff --git a/casdk-docs/docs/tutorial-basics/carbon-aware-webapi.md b/casdk-docs/docs/tutorial-basics/carbon-aware-webapi.md index f971f0714..028db6273 100644 --- a/casdk-docs/docs/tutorial-basics/carbon-aware-webapi.md +++ b/casdk-docs/docs/tutorial-basics/carbon-aware-webapi.md @@ -456,10 +456,10 @@ CarbonAware.LocationSources.LocationSource: Warning: New key swedencentral_1 gen ## Error Handling The WebAPI leveraged the -[.Net controller filter pipeline](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters?view=aspnetcore-6.0) +[.Net controller filter pipeline](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters?view=aspnetcore-8.0) to ensure that all requests respond with a consistent JSON schema. -![.Net controller filter pipeline image](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters/_static/filter-pipeline-2.png?view=aspnetcore-6.0) +![.Net controller filter pipeline image](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters/_static/filter-pipeline-2.png?view=aspnetcore-8.0) Controllers are responsible for managing the "Success" responses. If an error occurs in the WebAPI code and an unhandled exception is thrown, the @@ -470,7 +470,7 @@ caught and handled by the WebAPI code, the controller will continue to manage the response. The .Net framework will automatically respond to validation errors with a -[ValidationProblemDetails](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.validationproblemdetails?view=aspnetcore-6.0) +[ValidationProblemDetails](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.validationproblemdetails?view=aspnetcore-8.0) object. Using the Exception Filter class enables the WebAPI to consistently respond with the `ValidationProblemDetails` error schema in all error cases and take advantage of error handling automatically provided by the framework. @@ -489,7 +489,7 @@ specification cd CarbonAware.WebApi/src dotnet tool restore dotnet build --configuration Release --no-restore - dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml bin/Release/net6.0/CarbonAware.WebApi.dll v1 + dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml bin/Release/net8.0/CarbonAware.WebApi.dll v1 ``` 1. The `CarbonAware.WebApi/src/wwwroot/api/v1/swagger.yaml` file contains the supported OpenApi specification. diff --git a/casdk-docs/docs/tutorial-extras/configuration.md b/casdk-docs/docs/tutorial-extras/configuration.md index 7453b8e82..fbc6ff3e7 100644 --- a/casdk-docs/docs/tutorial-extras/configuration.md +++ b/casdk-docs/docs/tutorial-extras/configuration.md @@ -194,7 +194,7 @@ custom `EmissionsData` sets. The file should be located under the `/src/data/data-sources/` directory that is part of the repository. At build time, all the JSON files under `/src/data/data-sources/` are copied over the destination directory -`/src/CarbonAware.WebApi/src/bin/[Debug|Publish]/net6.0/data-sources/json` +`/src/CarbonAware.WebApi/src/bin/[Debug|Publish]/net8.0/data-sources/json` that is part of the `CarbonAware.WebApi` assembly. Also the file can be placed where the assembly `CarbonAware.WebApi.dll` is located under `data-sources/json` directory. For instance, if the application is installed under `/app`, copy the @@ -427,7 +427,7 @@ By setting `LocationDataSourcesConfiguration` property with one or more location data sources, it is possible to load different `Location` data sets in order to have more than one location. For instance by setting two location regions, the property would be set as follow using -[environment](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-6.0#naming-of-environment-variables) +[environment](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0#naming-of-environment-variables) variables: ```sh @@ -458,7 +458,7 @@ curl "http://${IP_HOST}:${PORT}/emissions/bylocations/best?location=${REGION}&ti At build time, all the JSON files under `/src/data/location-sources` are copied over the destination directory -`/src/CarbonAware.WebApi/src/bin/[Debug|Publish]/net6.0/location-sources/json` +`/src/CarbonAware.WebApi/src/bin/[Debug|Publish]/net8.0/location-sources/json` that is part of the `CarbonAware.WebApi` assembly. Also the file can be placed where the assembly `CarbonAware.WebApi.dll` is located under `location-sources/json` directory. For instance, if the application is installed diff --git a/casdk-docs/docs/tutorial-extras/packaging.md b/casdk-docs/docs/tutorial-extras/packaging.md index ac8dac6d7..7aef80801 100644 --- a/casdk-docs/docs/tutorial-extras/packaging.md +++ b/casdk-docs/docs/tutorial-extras/packaging.md @@ -63,7 +63,7 @@ project. When running in the dev container you will need: - [Remote Containers extension for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) Alternatively you can run in your local environment using the -[.NET Core 6.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0). +[.NET Core 8.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0). ## SDK Configuration diff --git a/samples/lib-integration/ConsoleApp/ConsoleApp.csproj b/samples/lib-integration/ConsoleApp/ConsoleApp.csproj index c688178ea..ffd7e1267 100644 --- a/samples/lib-integration/ConsoleApp/ConsoleApp.csproj +++ b/samples/lib-integration/ConsoleApp/ConsoleApp.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable diff --git a/src/CarbonAware.CLI/src/CarbonAware.CLI.csproj b/src/CarbonAware.CLI/src/CarbonAware.CLI.csproj index fcc1f9bfb..f097ae0c9 100644 --- a/src/CarbonAware.CLI/src/CarbonAware.CLI.csproj +++ b/src/CarbonAware.CLI/src/CarbonAware.CLI.csproj @@ -4,7 +4,7 @@ caw win-x64;osx-x64;linux-x64 Exe - net6.0 + net8.0 enable enable 34d82203-20b1-4fcd-9bd4-3b247f13bad7 diff --git a/src/CarbonAware.CLI/src/Dockerfile b/src/CarbonAware.CLI/src/Dockerfile index 94c08a68e..8bd94af86 100644 --- a/src/CarbonAware.CLI/src/Dockerfile +++ b/src/CarbonAware.CLI/src/Dockerfile @@ -1,5 +1,5 @@ -# Set the base image as the .NET 6.0 SDK (this includes the runtime) -FROM mcr.microsoft.com/dotnet/sdk:6.0 as build-env +# Set the base image as the .NET 8.0 SDK (this includes the runtime) +FROM mcr.microsoft.com/dotnet/sdk:8.0 as build-env # Copy everything and publish the release (publish implicitly restores and builds) COPY ./src/ ./ @@ -27,7 +27,7 @@ LABEL com.github.actions.icon="sliders" LABEL com.github.actions.color="purple" # Relayer the .NET SDK, anew with the build output -FROM mcr.microsoft.com/dotnet/runtime:6.0 +FROM mcr.microsoft.com/dotnet/runtime:8.0 COPY --from=build-env /out . RUN apt-get update && apt-get install jq -y diff --git a/src/CarbonAware.CLI/test/integrationTests/CarbonAware.CLI.IntegrationTests.csproj b/src/CarbonAware.CLI/test/integrationTests/CarbonAware.CLI.IntegrationTests.csproj index 9b0dd0efe..a79c9cdf0 100644 --- a/src/CarbonAware.CLI/test/integrationTests/CarbonAware.CLI.IntegrationTests.csproj +++ b/src/CarbonAware.CLI/test/integrationTests/CarbonAware.CLI.IntegrationTests.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable false enable diff --git a/src/CarbonAware.CLI/test/unitTests/CarbonAware.CLI.UnitTests.csproj b/src/CarbonAware.CLI/test/unitTests/CarbonAware.CLI.UnitTests.csproj index a97048508..8c56dd8ba 100644 --- a/src/CarbonAware.CLI/test/unitTests/CarbonAware.CLI.UnitTests.csproj +++ b/src/CarbonAware.CLI/test/unitTests/CarbonAware.CLI.UnitTests.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable false enable diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/mock/CarbonAware.DataSources.ElectricityMaps.Mocks.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/mock/CarbonAware.DataSources.ElectricityMaps.Mocks.csproj index ac0346757..10277e544 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/mock/CarbonAware.DataSources.ElectricityMaps.Mocks.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/mock/CarbonAware.DataSources.ElectricityMaps.Mocks.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable false diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/src/CarbonAware.DataSources.ElectricityMaps.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/src/CarbonAware.DataSources.ElectricityMaps.csproj index d9dab5e3e..1d3c1ad32 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/src/CarbonAware.DataSources.ElectricityMaps.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/src/CarbonAware.DataSources.ElectricityMaps.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable enable true diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/test/CarbonAware.DataSources.ElectricityMaps.Tests.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/test/CarbonAware.DataSources.ElectricityMaps.Tests.csproj index 34e343371..b726b4773 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/test/CarbonAware.DataSources.ElectricityMaps.Tests.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMaps/test/CarbonAware.DataSources.ElectricityMaps.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable false diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/mock/CarbonAware.DataSources.ElectricityMapsFree.Mocks.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/mock/CarbonAware.DataSources.ElectricityMapsFree.Mocks.csproj index 60a945672..a8878c6ae 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/mock/CarbonAware.DataSources.ElectricityMapsFree.Mocks.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/mock/CarbonAware.DataSources.ElectricityMapsFree.Mocks.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/src/CarbonAware.DataSources.ElectricityMapsFree.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/src/CarbonAware.DataSources.ElectricityMapsFree.csproj index 8db8bc27b..310a6ed47 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/src/CarbonAware.DataSources.ElectricityMapsFree.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/src/CarbonAware.DataSources.ElectricityMapsFree.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable enable diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/test/CarbonAware.DataSources.ElectricityMapsFree.Tests.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/test/CarbonAware.DataSources.ElectricityMapsFree.Tests.csproj index 742632c0e..0375049af 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/test/CarbonAware.DataSources.ElectricityMapsFree.Tests.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.ElectricityMapsFree/test/CarbonAware.DataSources.ElectricityMapsFree.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable false diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/mock/CarbonAware.DataSources.Json.Mocks.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/mock/CarbonAware.DataSources.Json.Mocks.csproj index a6f5e7724..898d7f162 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/mock/CarbonAware.DataSources.Json.Mocks.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/mock/CarbonAware.DataSources.Json.Mocks.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable false diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/src/CarbonAware.DataSources.Json.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/src/CarbonAware.DataSources.Json.csproj index 7c9905d41..7bba6e61d 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/src/CarbonAware.DataSources.Json.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/src/CarbonAware.DataSources.Json.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable enable true diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/test/CarbonAware.DataSources.Json.Tests.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/test/CarbonAware.DataSources.Json.Tests.csproj index 1addeb0dd..065ebeee5 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/test/CarbonAware.DataSources.Json.Tests.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.Json/test/CarbonAware.DataSources.Json.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable false diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.Registration/CarbonAware.DataSources.Registration.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.Registration/CarbonAware.DataSources.Registration.csproj index d66d5e8c7..40ecc3ffe 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.Registration/CarbonAware.DataSources.Registration.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.Registration/CarbonAware.DataSources.Registration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable true diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/mock/CarbonAware.DataSources.WattTime.Mocks.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/mock/CarbonAware.DataSources.WattTime.Mocks.csproj index 1adda21a9..061c0cbab 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/mock/CarbonAware.DataSources.WattTime.Mocks.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/mock/CarbonAware.DataSources.WattTime.Mocks.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable false diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/src/CarbonAware.DataSources.WattTime.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/src/CarbonAware.DataSources.WattTime.csproj index 20f6d7230..996b31ae4 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/src/CarbonAware.DataSources.WattTime.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/src/CarbonAware.DataSources.WattTime.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable true diff --git a/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/test/CarbonAware.DataSources.WattTime.Tests.csproj b/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/test/CarbonAware.DataSources.WattTime.Tests.csproj index 295fb782c..77f142861 100644 --- a/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/test/CarbonAware.DataSources.WattTime.Tests.csproj +++ b/src/CarbonAware.DataSources/CarbonAware.DataSources.WattTime/test/CarbonAware.DataSources.WattTime.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable false diff --git a/src/CarbonAware.LocationSources/src/CarbonAware.LocationSources.csproj b/src/CarbonAware.LocationSources/src/CarbonAware.LocationSources.csproj index d05da871e..50211d65d 100644 --- a/src/CarbonAware.LocationSources/src/CarbonAware.LocationSources.csproj +++ b/src/CarbonAware.LocationSources/src/CarbonAware.LocationSources.csproj @@ -5,7 +5,7 @@ - net6.0 + net8.0 enable enable true diff --git a/src/CarbonAware.LocationSources/test/CarbonAware.LocationSources.Test.csproj b/src/CarbonAware.LocationSources/test/CarbonAware.LocationSources.Test.csproj index 498ef5124..28dc668ef 100644 --- a/src/CarbonAware.LocationSources/test/CarbonAware.LocationSources.Test.csproj +++ b/src/CarbonAware.LocationSources/test/CarbonAware.LocationSources.Test.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 false enable diff --git a/src/CarbonAware.Tools/CarbonAware.Tools.AWSRegionTestDataGenerator/CarbonAware.Tools.AWSRegionTestDataGenerator.csproj b/src/CarbonAware.Tools/CarbonAware.Tools.AWSRegionTestDataGenerator/CarbonAware.Tools.AWSRegionTestDataGenerator.csproj index 203c50ed1..b5757b3b9 100644 --- a/src/CarbonAware.Tools/CarbonAware.Tools.AWSRegionTestDataGenerator/CarbonAware.Tools.AWSRegionTestDataGenerator.csproj +++ b/src/CarbonAware.Tools/CarbonAware.Tools.AWSRegionTestDataGenerator/CarbonAware.Tools.AWSRegionTestDataGenerator.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable false diff --git a/src/CarbonAware.Tools/CarbonAware.Tools.AzureRegionTestDataGenerator/CarbonAware.Tools.AzureRegionTestDataGenerator.csproj b/src/CarbonAware.Tools/CarbonAware.Tools.AzureRegionTestDataGenerator/CarbonAware.Tools.AzureRegionTestDataGenerator.csproj index dc24429ba..ddfd8938d 100644 --- a/src/CarbonAware.Tools/CarbonAware.Tools.AzureRegionTestDataGenerator/CarbonAware.Tools.AzureRegionTestDataGenerator.csproj +++ b/src/CarbonAware.Tools/CarbonAware.Tools.AzureRegionTestDataGenerator/CarbonAware.Tools.AzureRegionTestDataGenerator.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable false diff --git a/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj b/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj index 356e23088..e597afa4e 100644 --- a/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj +++ b/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable 8d822819-8a1f-45e4-95fb-d4a9c3a9439f diff --git a/src/CarbonAware.WebApi/src/Dockerfile b/src/CarbonAware.WebApi/src/Dockerfile index bc46714fe..70fa22c62 100644 --- a/src/CarbonAware.WebApi/src/Dockerfile +++ b/src/CarbonAware.WebApi/src/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env WORKDIR /app # Copy everything from source @@ -12,7 +12,7 @@ RUN dotnet tool restore && \ dotnet tool run swagger tofile --output /app/publish/wwwroot/api/v1/swagger.yaml --yaml /app/publish/CarbonAware.WebApi.dll v1 # Build runtime image -FROM mcr.microsoft.com/dotnet/aspnet:6.0 +FROM mcr.microsoft.com/dotnet/aspnet:8.0 # Install curl for health check RUN apt-get update && \ apt-get install -y --no-install-recommends curl diff --git a/src/CarbonAware.WebApi/src/Program.cs b/src/CarbonAware.WebApi/src/Program.cs index 9a70c15ab..94e553a7e 100644 --- a/src/CarbonAware.WebApi/src/Program.cs +++ b/src/CarbonAware.WebApi/src/Program.cs @@ -115,6 +115,6 @@ app.Run(); -// Please view https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-6.0#basic-tests-with-the-default-webapplicationfactory +// Please view https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-8.0#basic-tests-with-the-default-webapplicationfactory // This line is needed to allow for Integration Testing public partial class Program { } diff --git a/src/CarbonAware.WebApi/test/integrationTests/CarbonAware.WebApi.IntegrationTests.csproj b/src/CarbonAware.WebApi/test/integrationTests/CarbonAware.WebApi.IntegrationTests.csproj index df1ed5ada..fd9179089 100644 --- a/src/CarbonAware.WebApi/test/integrationTests/CarbonAware.WebApi.IntegrationTests.csproj +++ b/src/CarbonAware.WebApi/test/integrationTests/CarbonAware.WebApi.IntegrationTests.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable false enable diff --git a/src/CarbonAware.WebApi/test/unitTests/CarbonAware.WebApi.UnitTests.csproj b/src/CarbonAware.WebApi/test/unitTests/CarbonAware.WebApi.UnitTests.csproj index a1859042d..f630cd0f8 100644 --- a/src/CarbonAware.WebApi/test/unitTests/CarbonAware.WebApi.UnitTests.csproj +++ b/src/CarbonAware.WebApi/test/unitTests/CarbonAware.WebApi.UnitTests.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 enable false enable diff --git a/src/CarbonAware/src/CarbonAware.csproj b/src/CarbonAware/src/CarbonAware.csproj index d691e0f80..d04ce3a78 100644 --- a/src/CarbonAware/src/CarbonAware.csproj +++ b/src/CarbonAware/src/CarbonAware.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable true diff --git a/src/CarbonAware/test/CarbonAware.Tests.csproj b/src/CarbonAware/test/CarbonAware.Tests.csproj index c11002e82..630c1c23e 100644 --- a/src/CarbonAware/test/CarbonAware.Tests.csproj +++ b/src/CarbonAware/test/CarbonAware.Tests.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable false diff --git a/src/GSF.CarbonAware/src/GSF.CarbonAware.csproj b/src/GSF.CarbonAware/src/GSF.CarbonAware.csproj index f113e0b98..d49c11307 100644 --- a/src/GSF.CarbonAware/src/GSF.CarbonAware.csproj +++ b/src/GSF.CarbonAware/src/GSF.CarbonAware.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable true @@ -48,13 +48,13 @@ - + - + \ No newline at end of file diff --git a/src/GSF.CarbonAware/src/GSF.CarbonAware.targets b/src/GSF.CarbonAware/src/GSF.CarbonAware.targets index 0e9a1ace2..752a668a6 100644 --- a/src/GSF.CarbonAware/src/GSF.CarbonAware.targets +++ b/src/GSF.CarbonAware/src/GSF.CarbonAware.targets @@ -16,7 +16,7 @@ - + diff --git a/src/GSF.CarbonAware/test/GSF.CarbonAware.Tests.csproj b/src/GSF.CarbonAware/test/GSF.CarbonAware.Tests.csproj index 64e74590c..696005074 100644 --- a/src/GSF.CarbonAware/test/GSF.CarbonAware.Tests.csproj +++ b/src/GSF.CarbonAware/test/GSF.CarbonAware.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable false diff --git a/src/clients/docker-generate-clients.sh b/src/clients/docker-generate-clients.sh index 142a64179..23478f2d4 100755 --- a/src/clients/docker-generate-clients.sh +++ b/src/clients/docker-generate-clients.sh @@ -45,7 +45,7 @@ docker run --rm \ -i http://$1/swagger/v1/swagger.json \ -g csharp-netcore \ -o /local/csharp \ - --additional-properties=targetFramework=net6.0 + --additional-properties=targetFramework=net8.0 # golang docker run --rm \ diff --git a/src/clients/generate-clients.sh b/src/clients/generate-clients.sh index 529d78e7a..9677589b8 100755 --- a/src/clients/generate-clients.sh +++ b/src/clients/generate-clients.sh @@ -12,5 +12,5 @@ cd generated openapi-generator-cli generate -i http://$1/swagger/v1/swagger.json -g java -o ./java openapi-generator-cli generate -i http://$1/swagger/v1/swagger.json -g python -o ./python openapi-generator-cli generate -i http://$1/swagger/v1/swagger.json -g javascript -o ./javascript -openapi-generator-cli generate -i http://$1/swagger/v1/swagger.json -g csharp-netcore -o ./csharp --additional-properties=targetFramework=net6.0 +openapi-generator-cli generate -i http://$1/swagger/v1/swagger.json -g csharp-netcore -o ./csharp --additional-properties=targetFramework=net8.0 openapi-generator-cli generate -i http://$1/swagger/v1/swagger.json -g go -o ./golang diff --git a/src/clients/tests/csharp/Dockerfile b/src/clients/tests/csharp/Dockerfile index 56b1cffcd..4bb8ffe61 100644 --- a/src/clients/tests/csharp/Dockerfile +++ b/src/clients/tests/csharp/Dockerfile @@ -1,5 +1,5 @@ # https://hub.docker.com/_/microsoft-dotnet -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build # copy csharp client WORKDIR /source/clients/csharp/src/Org.OpenAPITools @@ -13,7 +13,7 @@ COPY tests/csharp . RUN dotnet publish -c release -o /app # final stage/image -FROM mcr.microsoft.com/dotnet/aspnet:6.0 +FROM mcr.microsoft.com/dotnet/aspnet:8.0 WORKDIR /app COPY tests/temp.env /.env COPY --from=build /app ./ diff --git a/src/clients/tests/csharp/csharp.csproj b/src/clients/tests/csharp/csharp.csproj index 0976a8879..f620d14f3 100644 --- a/src/clients/tests/csharp/csharp.csproj +++ b/src/clients/tests/csharp/csharp.csproj @@ -1,15 +1,15 @@ - net6.0 + net8.0 - - + + From fd601c64dcdd067f9a87f76e94a47e7f7be8423d Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Fri, 27 Oct 2023 09:26:10 +0900 Subject: [PATCH 2/8] update dotnet-tools to build image Signed-off-by: Takuya Iwatsuka --- src/CarbonAware.WebApi/src/.config/dotnet-tools.json | 4 ++-- src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj | 4 ++-- src/CarbonAware.WebApi/src/Dockerfile | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CarbonAware.WebApi/src/.config/dotnet-tools.json b/src/CarbonAware.WebApi/src/.config/dotnet-tools.json index 1a1607fe5..9a07f6919 100644 --- a/src/CarbonAware.WebApi/src/.config/dotnet-tools.json +++ b/src/CarbonAware.WebApi/src/.config/dotnet-tools.json @@ -3,10 +3,10 @@ "isRoot": true, "tools": { "swashbuckle.aspnetcore.cli": { - "version": "6.2.3", + "version": "6.5.0", "commands": [ "swagger" ] } } -} \ No newline at end of file +} diff --git a/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj b/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj index e597afa4e..18752943e 100644 --- a/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj +++ b/src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj @@ -21,7 +21,7 @@ - + @@ -45,4 +45,4 @@ - \ No newline at end of file + diff --git a/src/CarbonAware.WebApi/src/Dockerfile b/src/CarbonAware.WebApi/src/Dockerfile index 70fa22c62..f01e27777 100644 --- a/src/CarbonAware.WebApi/src/Dockerfile +++ b/src/CarbonAware.WebApi/src/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env WORKDIR /app +ENV DOTNET_ROLL_FORWARD LatestMajor # Copy everything from source COPY . ./ # Use implicit restore to build and publish From bc1fdfb5767a9517c87c5a501e1fa88b629e85dc Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Wed, 15 Nov 2023 15:51:58 +0900 Subject: [PATCH 3/8] Update version of setup-dotnet on workflows to use .NET 8.0 Signed-off-by: Takuya Iwatsuka --- .github/workflows/1-pr.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/1-pr.yaml b/.github/workflows/1-pr.yaml index 8b4103cd4..68b7e1922 100644 --- a/.github/workflows/1-pr.yaml +++ b/.github/workflows/1-pr.yaml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: 8.0.x @@ -91,7 +91,7 @@ jobs: - uses: actions/checkout@v3 - name: Setup .NET Core SDK 8 - uses: actions/setup-dotnet@v2 + uses: actions/@v3 with: dotnet-version: '8.0.x' include-prerelease: false @@ -165,7 +165,7 @@ jobs: with: ref: dev - name: Setup .NET Core SDK 8 - uses: actions/setup-dotnet@v2 + uses: actions/@v3 with: dotnet-version: '8.0.x' include-prerelease: false @@ -200,7 +200,7 @@ jobs: uses: actions/checkout@v3 - name: Setup .NET Core SDK 8 - uses: actions/setup-dotnet@v2 + uses: actions/@v3 with: dotnet-version: '8.0.x' include-prerelease: false @@ -244,4 +244,4 @@ jobs: command: config globs: | ./custom.markdownlint.jsonc - {"*[^.github]/**,*"}.md \ No newline at end of file + {"*[^.github]/**,*"}.md From b6317eaa576386b1140ec95f63fa98740377b6ee Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Wed, 15 Nov 2023 16:36:36 +0900 Subject: [PATCH 4/8] fix typo Signed-off-by: Takuya Iwatsuka --- .github/workflows/1-pr.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/1-pr.yaml b/.github/workflows/1-pr.yaml index 68b7e1922..21af16c7c 100644 --- a/.github/workflows/1-pr.yaml +++ b/.github/workflows/1-pr.yaml @@ -91,7 +91,7 @@ jobs: - uses: actions/checkout@v3 - name: Setup .NET Core SDK 8 - uses: actions/@v3 + uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' include-prerelease: false @@ -165,7 +165,7 @@ jobs: with: ref: dev - name: Setup .NET Core SDK 8 - uses: actions/@v3 + uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' include-prerelease: false @@ -200,7 +200,7 @@ jobs: uses: actions/checkout@v3 - name: Setup .NET Core SDK 8 - uses: actions/@v3 + uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' include-prerelease: false From 8d9d99ab085e18864d6b3f9c21367158486c51bf Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Wed, 15 Nov 2023 22:56:36 +0900 Subject: [PATCH 5/8] fix workflow jobs Signed-off-by: Takuya Iwatsuka --- .github/workflows/1-pr.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/1-pr.yaml b/.github/workflows/1-pr.yaml index 21af16c7c..b38b914d0 100644 --- a/.github/workflows/1-pr.yaml +++ b/.github/workflows/1-pr.yaml @@ -123,6 +123,8 @@ jobs: - name: Generate Open API run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1 + env: + DOTNET_ROLL_FORWARD: LatestMajor working-directory: ./src/CarbonAware.WebApi/src - name: Upload swagger artifact @@ -144,7 +146,7 @@ jobs: - name: Docker Run Container run: | - docker run -d --name runnable-container -p 8080:80 ca-api + docker run -d --name runnable-container -p 8080:8080 ca-api docker container ls - name: Docker WGET Health Endpoint @@ -179,6 +181,8 @@ jobs: working-directory: ${{ env.DOTNET_SRC_DIR }} - name: Generate Open API run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1 + env: + DOTNET_ROLL_FORWARD: LatestMajor - name: Upload dev artifact uses: actions/upload-artifact@v1 with: From 9a6b61483b1d8b3e543f55c5e508d8c78fe723d0 Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Tue, 16 Jan 2024 15:04:50 +0900 Subject: [PATCH 6/8] update port of web API Signed-off-by: Takuya Iwatsuka --- helm-chart/templates/deployment.yaml | 2 +- helm-chart/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-chart/templates/deployment.yaml b/helm-chart/templates/deployment.yaml index cec413296..5a21b6682 100644 --- a/helm-chart/templates/deployment.yaml +++ b/helm-chart/templates/deployment.yaml @@ -39,7 +39,7 @@ spec: {{- end }} ports: - name: http - containerPort: 80 + containerPort: 8080 protocol: TCP volumeMounts: - name: appsettings diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 452ef6a21..1f5cdaf9e 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -37,7 +37,7 @@ securityContext: {} service: type: ClusterIP - port: 80 + port: 8080 ingress: enabled: false From 934302c47c006e85257526d2288c83610e02be94 Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Sat, 17 Feb 2024 23:22:34 +0900 Subject: [PATCH 7/8] change the documentation about the port of the container according to .NET 8 specification Signed-off-by: Takuya Iwatsuka --- casdk-docs/docs/tutorial-basics/containerization.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/casdk-docs/docs/tutorial-basics/containerization.md b/casdk-docs/docs/tutorial-basics/containerization.md index 355a9a9b0..8f8211e05 100644 --- a/casdk-docs/docs/tutorial-basics/containerization.md +++ b/casdk-docs/docs/tutorial-basics/containerization.md @@ -25,11 +25,11 @@ carbon_aware v1 6293e2528bf2 About an hour ago 230MB ## Run WebApi Image 1. Run the image using `docker run` with host port 8000 mapped to the WebApi - port 80 and configure environment variable settings for + port 8080 and configure environment variable settings for [WattTime](https://www.watttime.org) provider. ```sh - docker run --rm -p 8000:80 \ + docker run --rm -p 8000:8080 \ > -e DataSources__EmissionsDataSource="WattTime" \ > -e DataSources__ForecastDataSource="WattTime" \ > -e DataSources__Configurations__WattTime__Type="WattTime" \ @@ -40,7 +40,7 @@ carbon_aware v1 6293e2528bf2 About an hour ago 230MB or the [ElectricityMaps](https://www.electricitymaps.com) provider ```sh - docker run --rm -p 8000:80 \ + docker run --rm -p 8000:8080 \ > -e DataSources__EmissionsDataSource="ElectricityMaps" \ > -e DataSources__ForecastDataSource="ElectricityMaps" \ > -e DataSources__Configurations__ElectricityMaps__Type="ElectricityMaps" \ @@ -52,7 +52,7 @@ carbon_aware v1 6293e2528bf2 About an hour ago 230MB or the [ElectricityMapsFree](https://www.co2signal.com/) provider ```sh - docker run --rm -p 8000:80 \ + docker run --rm -p 8000:8080 \ > -e DataSources__EmissionsDataSource="ElectricityMapsFree" \ > -e DataSources__Configurations__ElectricityMapsFree__Type="ElectricityMapsFree" \ > -e DataSources__Configurations__ElectricityMapsFree__token="" \ From defca6fbec3f653991ca039dcfe87db4e6ea68ad Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Tue, 27 Feb 2024 22:40:24 +0900 Subject: [PATCH 8/8] change the version of .NET at global.json Signed-off-by: Takuya Iwatsuka --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 1c64019b5..ad8ad01d1 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "6.0.418", + "version": "8.0.201", "rollForward": "latestFeature" } } \ No newline at end of file