diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 142b67d..460c1bb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" dotnet-quality: 'preview' - name: Install dependencies run: dotnet restore @@ -37,7 +37,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" dotnet-quality: 'preview' - name: Autobuild uses: github/codeql-action/autobuild@v2 diff --git a/Dockerfile b/Dockerfile index 4ef57a4..ca8b57b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine as build +FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine as build WORKDIR /app COPY . . RUN dotnet restore RUN dotnet publish -c Release -o /app/publish -FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine as runtime +FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as runtime COPY --from=build /app/publish /app/publish WORKDIR /app/publish EXPOSE 80 diff --git a/ODataExample.Test/ODataExample.Test.csproj b/ODataExample.Test/ODataExample.Test.csproj index c16dea6..697c147 100644 --- a/ODataExample.Test/ODataExample.Test.csproj +++ b/ODataExample.Test/ODataExample.Test.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false @@ -13,7 +13,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/ODataExample/ODataExample.csproj b/ODataExample/ODataExample.csproj index d4e5c26..e9f0b16 100644 --- a/ODataExample/ODataExample.csproj +++ b/ODataExample/ODataExample.csproj @@ -1,23 +1,23 @@ - net7.0 + net8.0 InProcess - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + diff --git a/README.md b/README.md index 0377bd0..7179f11 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ODataExample -OData Example in .NET Core API. This sample for .NET version 7.0. +OData Example in .NET Core API. This sample for .NET version 8.0. ## Build Status diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7fcd6cd..b350939 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,7 +12,7 @@ pool: variables: buildConfiguration: 'Release' imageName: 'berviantoleo/odata' - dotnetSdkVersion: '7.0.x' + dotnetSdkVersion: '8.0.x' steps: - task: UseDotNet@2