Skip to content

Commit a97afae

Browse files
[FSSDK-11731] 4.5 check
1 parent ece2d73 commit a97afae

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/csharp.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,19 @@ jobs:
4646
uses: NuGet/setup-nuget@v1
4747
- name: Install .NET Framework Developer Packs
4848
run: |
49+
# Install .NET 4.5.2 developer pack (this should work)
4950
choco install netfx-4.5.2-devpack -y
50-
choco install netfx-4.0.3-devpack -y
51+
52+
# Try .NET 4.0.3 but don't fail the build if it doesn't work
53+
echo "Attempting to install .NET 4.0.3 developer pack..."
54+
choco install netfx-4.0.3-devpack -y || echo "4.0.3 installation failed, continuing anyway..."
55+
56+
# Show what we have available
57+
echo "Checking installed targeting packs..."
58+
if (Test-Path "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework") {
59+
dir "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"
60+
}
61+
continue-on-error: true
5162
- name: Restore NuGet packages
5263
run: nuget restore ./OptimizelySDK.NETFramework.sln
5364
- name: Build & strongly name assemblies

0 commit comments

Comments
 (0)