Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/actions/build-solution/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
description: "Configuration to build the solution in"
required: false
default: "Release"
dotnet-version:
description: "Version of the .NET SDK used to run the build"
required: false
default: "8.0.x"
project-name:
description: "Name of the project/solution to build"
required: true
Expand All @@ -36,9 +40,11 @@ runs:
name: "VERSION"
token: ${{ inputs.repo-token }}

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ inputs.dotnet-version }}

- name: Build Solution
shell: pwsh
run: msbuild ${{ inputs.project-name }}.sln -t:rebuild -restore -property:Configuration=${{ inputs.build-configuration }} -property:Version=${{inputs.version-prefix}}.${{ steps.version-increment.outputs.value }}${{ inputs.branch-postfix }}
run: dotnet msbuild ${{ inputs.project-name }}.sln -t:rebuild -restore -property:Configuration=${{ inputs.build-configuration }} -property:Version=${{inputs.version-prefix}}.${{ steps.version-increment.outputs.value }}${{ inputs.branch-postfix }}