Skip to content

Update dotnet-desktop.yml #10

Update dotnet-desktop.yml

Update dotnet-desktop.yml #10

name: .NET Desktop
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Chocolatey
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- name: Install .NET Framework 4.8 with Chocolatey
run: choco install netfx-4.8 -y
- name: Restore NuGet packages
run: nuget restore FaceDetectionApp.sln
- name: Build solution
run: msbuild FaceDetectionApp.sln /p:Configuration=Release