Skip to content

Commit f1d2ec3

Browse files
authored
Added support to install .net framework 4.0 before building in gitlab actions
1 parent c0edb3e commit f1d2ec3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/dotnet-CI-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
- name: Restore NuGet packages
2828
run: nuget restore RandomString4Net.sln
2929

30+
- name: Install .NET Framework 4.0 Developer Pack
31+
run: |
32+
choco install dotnet4.0-targetpack -y
33+
# The following line sets up the environment variables required by msbuild
34+
refreshenv
35+
3036
- name: Build RandomString4Net project for release
3137
run: msbuild RandomString4Net.sln -property:Configuration=Release -property:platform="Any CPU"
3238

0 commit comments

Comments
 (0)