Skip to content

Commit eb7866b

Browse files
committed
Create symbolic link for libgdiplus to fix System.Drawing.Common on Linux
.NET runtime looks for 'gdiplus.dll' but libgdiplus installs as 'libgdiplus.so' on Linux. Creating a symbolic link allows the runtime to find the library correctly.
1 parent 02840ac commit eb7866b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
sudo apt-get update
3131
sudo apt-get install -y libgdiplus
3232
sudo ldconfig
33+
# Create symbolic link for .NET runtime to find the library
34+
sudo ln -sf /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
3335
3436
- name: Run Unit Tests
3537
run: |

0 commit comments

Comments
 (0)