Skip to content

Commit db8048f

Browse files
authored
Added support for install .Net4.0 devpack directly
1 parent 79c9b30 commit db8048f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
steps:
1616
- uses: actions/[email protected]
1717

18-
- name: Install .NET Framework 4.0 Full Redistributable
18+
- name: Install .NET Framework 4.0 Developer Pack
1919
run: |
20-
choco install netfx-4.0.2-devpack -y
21-
$env:Path += ";${env:ChocolateyInstall}\bin"
22-
$env:Path += ";${env:ChocolateyInstall}\lib\netfx-4.0.2-devpack\tools"
20+
$url = 'https://app.ljnath.com/files/dotNetFx40_Full_x86_x64.exe'
21+
$installer = "$env:TEMP\NDP40-DevPack.exe"
22+
Invoke-WebRequest -Uri $url -OutFile $installer
23+
Start-Process -FilePath $installer -ArgumentList '/q' -Wait
2324
2425
- name: Setup MSBuild
2526
uses: microsoft/[email protected]

0 commit comments

Comments
 (0)