From f1d2ec3dbf48e84d63d6c2abb196ebf0ba122cf7 Mon Sep 17 00:00:00 2001 From: Lakhya Jyoti Nath Date: Wed, 15 Nov 2023 22:35:32 +0530 Subject: [PATCH] Added support to install .net framework 4.0 before building in gitlab actions --- .github/workflows/dotnet-CI-workflow.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/dotnet-CI-workflow.yml b/.github/workflows/dotnet-CI-workflow.yml index 0899354..e6c39fe 100644 --- a/.github/workflows/dotnet-CI-workflow.yml +++ b/.github/workflows/dotnet-CI-workflow.yml @@ -27,6 +27,12 @@ jobs: - name: Restore NuGet packages run: nuget restore RandomString4Net.sln + - name: Install .NET Framework 4.0 Developer Pack + run: | + choco install dotnet4.0-targetpack -y + # The following line sets up the environment variables required by msbuild + refreshenv + - name: Build RandomString4Net project for release run: msbuild RandomString4Net.sln -property:Configuration=Release -property:platform="Any CPU"