Skip to content

Commit

Permalink
Update dotnet-CI-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnath authored Nov 15, 2023
1 parent ef697af commit ed16014
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dotnet-CI-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ on:

jobs:
build:
runs-on: windows-latest
runs-on: windows-2022
steps:
- uses: actions/[email protected]

- name: Install .NET Framework 4.0 Full Redistributable
run: |
choco install dotnet4.0 -y
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
RefreshEnvironment
- name: Setup MSBuild
uses: microsoft/[email protected]
Expand All @@ -23,16 +29,10 @@ jobs:

- name: Setup NuGet
uses: NuGet/[email protected]

- name: Restore NuGet packages
run: nuget restore RandomString4Net.sln

- name: Install .NET Framework 4.0 Full Redistributable
run: |
choco install dotnet4.0 -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"

Expand Down

0 comments on commit ed16014

Please sign in to comment.