From 564dd5b8806fc23f2545523cb212558fa27f3c9d Mon Sep 17 00:00:00 2001 From: Osman Mazinov Date: Sat, 30 Mar 2024 13:40:19 +0100 Subject: [PATCH] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 9dca056..267991e 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -16,10 +16,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Setup .NET Framework - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '4.8.x' + - 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