From da051f9fbc9aef59a8e435dab72e9b05336bd2c5 Mon Sep 17 00:00:00 2001 From: Lamparter <71598437+Lamparter@users.noreply.github.com> Date: Sun, 2 Feb 2025 19:05:40 +0000 Subject: [PATCH] Code Quality: Add conditional package reference to console project (#16) --- .github/workflows/ci.yml | 6 +++--- Directory.Build.props | 7 ++++++- .../Riverside.JsonBinder.Console.csproj | 9 +++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17c6400..01f9260 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,10 @@ jobs: dotnet-version: '9.0.x' - name: Restore dependencies - run: dotnet restore + run: dotnet restore /p:GITHUB_ACTIONS=true - name: Build - run: dotnet build --configuration ${{ matrix.configuration }} --no-restore + run: dotnet build --configuration ${{ matrix.configuration }} --no-restore /p:GITHUB_ACTIONS=true test: name: Test @@ -52,4 +52,4 @@ jobs: dotnet-version: '9.0.x' - name: Test - run: dotnet test --configuration Release --verbosity normal \ No newline at end of file + run: dotnet test --configuration Release --verbosity normal /p:GITHUB_ACTIONS=true diff --git a/Directory.Build.props b/Directory.Build.props index f9437c0..14b8179 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -18,4 +18,9 @@ $(DisplayVersion)-$(ReleaseLevel)$(BetaVersion) $(DisplayVersion) - \ No newline at end of file + + + + true + + diff --git a/src/Riverside.JsonBinder.Console/Riverside.JsonBinder.Console.csproj b/src/Riverside.JsonBinder.Console/Riverside.JsonBinder.Console.csproj index 13386f3..e089dd7 100644 --- a/src/Riverside.JsonBinder.Console/Riverside.JsonBinder.Console.csproj +++ b/src/Riverside.JsonBinder.Console/Riverside.JsonBinder.Console.csproj @@ -15,4 +15,13 @@ + + + + + + + + +