Update dotnet.yml #17
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Restore NuGet packages | |
run: msbuild /t:restore OutlookFormFinder.sln | |
- name: Install specific NuGet package | |
run: nuget install Microsoft.Office.Interop.Outlook -Version 15.0.4797.1004 | |
- name: Build | |
run: msbuild OutlookFormFinder.sln /p:Configuration=Release /p:Platform="Any CPU" | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: net481 | |
path: bin\Release\net481\ | |