Update main.yml #3
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 .NET WinForms Application | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install .NET Framework 4.8.1 Developer Pack | |
uses: NuGet/setup-nuget@v1 | |
with: | |
nuget-version: '5.x' | |
- run: nuget install Microsoft.Windows.Compatibility -Version 5.0.2 -OutputDirectory C:\Microsoft.Windows.Compatibility | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build | |
run: | | |
nuget restore Optimade.sln | |
msbuild /p:Configuration=Release Optimade.sln |