From 75dc16b5c0156b06b2405ebd3e6853e70f557f86 Mon Sep 17 00:00:00 2001 From: Michael Yabko Date: Thu, 5 Dec 2024 09:51:58 -0500 Subject: [PATCH 1/2] updated to netstandard2.0 --- Core/Core.csproj | 2 +- Geography/Geography.csproj | 2 +- Tests/Tests.csproj | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Core/Core.csproj b/Core/Core.csproj index 346652f..0e85f78 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -1,7 +1,7 @@  - netstandard1.5 + netstandard2.0 Archon.Enums Archon.Enums Archon Framework Library™ diff --git a/Geography/Geography.csproj b/Geography/Geography.csproj index 9aeb6e9..147bcff 100644 --- a/Geography/Geography.csproj +++ b/Geography/Geography.csproj @@ -1,7 +1,7 @@  - netstandard1.0 + netstandard2.0 Archon.Enums.Geography Archon.Enums Archon Framework Library™ diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index f8139a1..278ac99 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,15 +1,18 @@  - netcoreapp1.1 + net9.0 Archon.Enums.Tests Archon.Enums.Tests - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + From 52fb329dc3ee96037656ca1f984f3b98eafe59e3 Mon Sep 17 00:00:00 2001 From: Michael Yabko <59970024+MichaelYabko@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:03:52 -0500 Subject: [PATCH 2/2] Create dotnet.yml --- .github/workflows/dotnet.yml | 34 ++++++++++++++++++++++++++++++++++ Core/Core.csproj | 1 + Geography/Geography.csproj | 1 + 3 files changed, 36 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..43e3fa6 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,34 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Pack + run: dotnet pack --output ./nupkgs --configuration Release + - name: Publish Nuget to GitHub registry + run: dotnet nuget push ./nupkgs/*.nupkg -k ${GITHUB_TOKEN} -s https://nuget.pkg.github.com/Sharp-Point-Data/index.json --skip-duplicate --no-symbols + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Core/Core.csproj b/Core/Core.csproj index 0e85f78..c7397e8 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -11,6 +11,7 @@ https://github.com/civicsource/enums/ https://github.com/civicsource/enums.git git + 3.0.0 Provides convenient utility methods for working with Enums and their user-friendly descriptions enums utility description parser friendly names tostring diff --git a/Geography/Geography.csproj b/Geography/Geography.csproj index 147bcff..c50d247 100644 --- a/Geography/Geography.csproj +++ b/Geography/Geography.csproj @@ -11,6 +11,7 @@ https://github.com/civicsource/enums/ https://github.com/civicsource/enums.git git + 3.0.0 Provides enums / descriptions for 248 countries and 75 US states and Canadian provinces states provinces user-friendly united states canada canadian