Commit 6b17ff5a authored by shRabbit's avatar shRabbit
Browse files

Fix MSB1001: use -p:Configuration instead of --configuration for sln builds

parent cfcacc77
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ dotnet-restore:
    NUGET_RESTORE_ARGS: "$[[ inputs.solution_path ]]"
  script:
    - if [ -z "$NUGET_RESTORE_ARGS" ]; then echo "No solution/project specified, skipping restore." && exit 0; fi
    - dotnet restore "$NUGET_RESTORE_ARGS" --configuration "$BUILD_CONFIGURATION"
    - dotnet restore "$NUGET_RESTORE_ARGS" -p:Configuration="$BUILD_CONFIGURATION"
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
@@ -71,7 +71,7 @@ dotnet-build:
  variables:
    DOTNET_BUILD_ARGS: "$[[ inputs.solution_path ]]"
  script:
    - dotnet build "$DOTNET_BUILD_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore
    - dotnet build "$DOTNET_BUILD_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore
  artifacts:
    paths:
      - "**/bin/$BUILD_CONFIGURATION/**"
@@ -91,7 +91,7 @@ dotnet-test:
  variables:
    DOTNET_TEST_ARGS: "$[[ inputs.solution_path ]]"
  script:
    - dotnet test "$DOTNET_TEST_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore --no-build
    - dotnet test "$DOTNET_TEST_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore --no-build
  artifacts:
    when: always
    reports:
@@ -112,7 +112,7 @@ dotnet-publish:
  variables:
    DOTNET_PUBLISH_ARGS: "$[[ inputs.solution_path ]]"
  script:
    - dotnet publish "$DOTNET_PUBLISH_ARGS" --configuration "$BUILD_CONFIGURATION" --no-restore --no-build --output "$PUBLISH_OUTPUT"
    - dotnet publish "$DOTNET_PUBLISH_ARGS" -p:Configuration="$BUILD_CONFIGURATION" --no-restore --no-build --output "$PUBLISH_OUTPUT"
  artifacts:
    paths:
      - "$PUBLISH_OUTPUT/**"