From 0d7ab2a52e153fde0f301fad9db549d4563bff72 Mon Sep 17 00:00:00 2001 From: Umar Farooq Date: Thu, 17 Oct 2024 13:28:57 +0500 Subject: [PATCH] Update .NET version in Dockerfile, devcontainer.json, GitHub Actions workflow, and .csproj --- .devcontainer/Dockerfile | 2 +- .devcontainer/devcontainer.json | 2 +- .github/workflows/dotnet5.yml | 28 ++++++++++++++-------------- prospect-scraper-mddb-2022.csproj | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index bd995e4..4348b65 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,7 +1,7 @@ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/dotnet/.devcontainer/base.Dockerfile # [Choice] .NET version: 5.0, 3.1, 2.1 -ARG VARIANT="7.0" +ARG VARIANT="8.0" FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT} # [Option] Install Node.js diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f4d9d88..fedd015 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,7 +6,7 @@ "dockerfile": "Dockerfile", "args": { // Update 'VARIANT' to pick a .NET Core version: 2.1, 3.1, 5.0 - "VARIANT": "7.0", + "VARIANT": "8.0", // Options "INSTALL_NODE": "true", "NODE_VERSION": "lts/*", diff --git a/.github/workflows/dotnet5.yml b/.github/workflows/dotnet5.yml index 210c465..e924845 100644 --- a/.github/workflows/dotnet5.yml +++ b/.github/workflows/dotnet5.yml @@ -1,23 +1,23 @@ -name: .NET 7 Build & Test +name: .NET 8 Build & Test on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Setup .NET 7 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 7.0.x - - name: Restore Dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + - uses: actions/checkout@v2 + - name: Setup .NET 8 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.x + - name: Restore Dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/prospect-scraper-mddb-2022.csproj b/prospect-scraper-mddb-2022.csproj index 0c0b206..be9ea49 100644 --- a/prospect-scraper-mddb-2022.csproj +++ b/prospect-scraper-mddb-2022.csproj @@ -1,8 +1,8 @@ - + Exe - net7.0 + net8.0 prospect_scraper_mddb_2022