Merge pull request #45 from AKruimink/fix-disposed-application-exception #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'build-project' | |
on: | |
push: # Push always triggers after a merge | |
branches: | |
- master | |
- develop | |
pull_request: | |
# Defines environment variables | |
env: | |
NETCORE_VERSION: '8.0.x' | |
jobs: | |
build: | |
name: 'run-project-build' | |
runs-on: windows-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v3 | |
# Setup the .NET 8.0 SDK environment | |
- name: 'setup .NET SDK ${{ env.NETCORE_VERSION }}' | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.NETCORE_VERSION }} | |
# Restore NuGet packages to ensure dependencies are available for the build | |
- name: 'restore nuget packages' | |
working-directory: './src' | |
run: dotnet restore | |
# Build the project in Release configuration | |
- name: 'build project' | |
working-directory: './src' | |
run: dotnet build --configuration Release --no-restore |