Skip to content

Update dotnet.yml

Update dotnet.yml #17

Workflow file for this run

# 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\