File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 46
46
uses : NuGet/setup-nuget@v1
47
47
- name : Install .NET Framework Developer Packs
48
48
run : |
49
+ # Install .NET 4.5.2 developer pack (this works reliably)
49
50
choco install netfx-4.5.2-devpack -y
50
- choco install windows-sdk-7.1 -y
51
- choco install netfx-4.0.3-devpack -y
51
+
52
+ # Check what targeting packs are already available
53
+ echo "Checking available targeting packs..."
54
+ dir "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools" || echo "No .NET 4.0 tools found"
55
+ dir "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework" || echo "No reference assemblies found"
56
+
57
+ # Try to install .NET 4.0 targeting pack from a different source
58
+ echo "Attempting to download .NET 4.0 targeting pack..."
59
+ Invoke-WebRequest -Uri "https://download.microsoft.com/download/1/B/E/1BE39E79-7E39-46A3-96FF-047F95396215/dotNetFx40_Full_setup.exe" -OutFile "dotnet40.exe"
60
+ .\dotnet40.exe /quiet /norestart || echo "Installation failed or already installed"
61
+ continue-on-error : true
52
62
- name : Restore NuGet packages
53
63
run : nuget restore ./OptimizelySDK.NETFramework.sln
54
64
- name : Build & strongly name assemblies
Original file line number Diff line number Diff line change 43
43
uses : nuget/setup-nuget@v2
44
44
- name : Install .NET Framework Developer Packs
45
45
run : |
46
+ # Install .NET 4.5.2 developer pack (this works reliably)
46
47
choco install netfx-4.5.2-devpack -y
47
- choco install windows-sdk-7.1 -y
48
- choco install netfx-4.0.3-devpack -y
48
+
49
+ # Check what targeting packs are already available
50
+ echo "Checking available targeting packs..."
51
+ dir "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools" || echo "No .NET 4.0 tools found"
52
+ dir "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework" || echo "No reference assemblies found"
53
+
54
+ # Try to install .NET 4.0 targeting pack from a different source
55
+ echo "Attempting to download .NET 4.0 targeting pack..."
56
+ Invoke-WebRequest -Uri "https://download.microsoft.com/download/1/B/E/1BE39E79-7E39-46A3-96FF-047F95396215/dotNetFx40_Full_setup.exe" -OutFile "dotnet40.exe"
57
+ .\dotnet40.exe /quiet /norestart || echo "Installation failed or already installed"
58
+ continue-on-error : true
49
59
- name : Restore NuGet packages
50
60
run : nuget restore ./OptimizelySDK.NETFramework.sln
51
61
- name : Build and strongly name assemblies
You can’t perform that action at this time.
0 commit comments