From 798629657980b05f8b92258b96f8079945571f4e Mon Sep 17 00:00:00 2001 From: Rami Date: Sun, 15 Oct 2023 23:44:45 -0700 Subject: [PATCH] disable warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. --- .github/workflows/build.yml | 13 +++++-------- .../AzurePipelines.TestLogger.Tests.csproj | 1 + .../SampleUnitTestProject.csproj | 1 + 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9224695..6e01e20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,14 +68,11 @@ jobs: - name: Test run: dotnet test --no-build --no-restore --verbosity normal --configuration ${{ matrix.Configuration }} - - name: Create zip - run: | - mkdir AzurePipelines.TestLogger.${{ env.SEM_VERSION }} - copy ".\src\AzurePipelines.TestLogger\bin\${{ matrix.Configuration }}\netstandard1.5\*.*" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} - copy ".\LICENSE" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} - copy ".\README.md" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} - copy ".\ReleaseNotes.md" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} - tar -cf AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} + - name: Create Zip + uses: vimtor/action-zip@v1.1 + with: + files: LICENSE README.md ReleaseNotes.md .\src\AzurePipelines.TestLogger\bin\${{ matrix.Configuration }}\netstandard1.5 + dest: AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip - name: Upload Build Artifact uses: actions/upload-artifact@v3.1.3 diff --git a/tests/AzurePipelines.TestLogger.Tests/AzurePipelines.TestLogger.Tests.csproj b/tests/AzurePipelines.TestLogger.Tests/AzurePipelines.TestLogger.Tests.csproj index 837ad1f..6d83ca0 100644 --- a/tests/AzurePipelines.TestLogger.Tests/AzurePipelines.TestLogger.Tests.csproj +++ b/tests/AzurePipelines.TestLogger.Tests/AzurePipelines.TestLogger.Tests.csproj @@ -2,6 +2,7 @@ netcoreapp2.1 + false diff --git a/tests/SampleUnitTestProject/SampleUnitTestProject.csproj b/tests/SampleUnitTestProject/SampleUnitTestProject.csproj index e1717b2..76f6681 100644 --- a/tests/SampleUnitTestProject/SampleUnitTestProject.csproj +++ b/tests/SampleUnitTestProject/SampleUnitTestProject.csproj @@ -1,6 +1,7 @@  netcoreapp2.1 + false Library false