Update dotnet.yml #9
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: Install dependencies | |
run: dotnet add package 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: | |
# A file, directory or wildcard pattern that describes what to upload | |
path: bin\Release\* | |