Skip to content

Commit 71ac3ca

Browse files
Install libgdiplus
Fix System.TypeInitializationException : The type initializer for 'Gdip' threw an exception. System.DllNotFoundException : Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc,
1 parent 30e1f18 commit 71ac3ca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/External-Storage-Tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
with:
5353
dotnet-version: '8.x'
5454
include-prerelease: true
55+
56+
- name: Install libgdiplus
57+
run: sudo apt-get install -y libgdiplus
5558

5659
- name: Create temporary solution with .NET 8 projects
5760
run: |

dotnet/test/ProjectHealthTest/PackageVersionsConsistency.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class PackageVersionTest
1515

1616
private const string PACKAGES_NODE_NAME = "Project/ItemGroup/PackageReference";
1717
private const string PACKAGE_NAME = "Include";
18-
private const string SRC_DIR = @"..\..\..\..\..\src";
18+
private static readonly string SRC_DIR = Path.Combine("..", "..", "..", "..", "..", "src");
1919
private const string PACKAGE_VERSION_ATTRIBUTE_NAME = "Version";
2020
private const string TARGET_FRAMEWORK = "Project/PropertyGroup/TargetFramework";
2121
private const string TARGET_FRAMEWORKS = "Project/PropertyGroup/TargetFrameworks";

0 commit comments

Comments
 (0)