Skip to content

Commit ed16014

Browse files
authored
Update dotnet-CI-workflow.yml
1 parent ef697af commit ed16014

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: windows-latest
14+
runs-on: windows-2022
1515
steps:
1616
- uses: actions/checkout@v4.1.1
17+
18+
- name: Install .NET Framework 4.0 Full Redistributable
19+
run: |
20+
choco install dotnet4.0 -y
21+
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
22+
RefreshEnvironment
1723
1824
- name: Setup MSBuild
1925
uses: microsoft/setup-msbuild@v1.3.1
@@ -23,16 +29,10 @@ jobs:
2329

2430
- name: Setup NuGet
2531
uses: NuGet/setup-nuget@v1.1.1
26-
32+
2733
- name: Restore NuGet packages
2834
run: nuget restore RandomString4Net.sln
2935

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

0 commit comments

Comments
 (0)