c# - Problem Mac autofit EPPLUS / Unity3d installed libgdiplus via Homebrew with no effect
问题描述
When trying to use auto fit columns in EPPLUS, in Unity3d on Mac, I get DllNotFoundException. It seems to be a known problem and I have found a few references like this: Similar problem
In the readme file installed:
*.NET Core uses a preview of System.Drawing.Common, so be aware of that. We will update it as Microsoft releases newer versions. System.Drawing.Common requires libgdiplus to be installed on non-Windows operating systems. Use your favorite package manager to install it. For example:
Homebrew on MacOS: brew install mono-libgdiplus
apt-get: apt-get install libgdiplus
EPPlus-A .NET Spreadsheet API*
I installed Homebrew, never heard of it before this, and it looks like it installed correctly. I then "brew install mono-libgdiplus" and that looked good as well.
Here is installation:
Last login: Mon Apr 22 21:15:06 on console
Peters-MBP:~ peterkallviks$ brew install mono-libgdiplus
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
boringtun
==> Updated Formulae
goreleaser jump lynis nagios
Reinstalled:
Peters-MBP:~ peterkallviks$ brew reinstall mono-libgdiplus
==> Reinstalling mono-libgdiplus
==> Downloading https://homebrew.bintray.com/bottles/mono-libgdiplus-5.6.mojave.
Already downloaded: /Users/peterkallviks/Library/Caches/Homebrew/downloads/a1212501645cb02bf6dd64e4a53f130bb447b1bc3a940010537edc2a1ebd88b4--mono-libgdiplus-5.6.mojave.bottle.tar.gz
==> Pouring mono-libgdiplus-5.6.mojave.bottle.tar.gz
/usr/local/Cellar/mono-libgdiplus/5.6: 13 files, 935.7KB
I still get the same error and do not know what to do to fix it.
Code causing the problem:
worksheet.Column(1).AutoFit();
解决方案
推荐阅读
- ios - 装有 Parallels 的 MacBook Pro 上没有声音
- postgresql - 我可以在 SELECT 中获取返回的 TABLE 中的每个字段吗?
- android - 如何使图像适合android中的所有不同屏幕?我需要 440x300dp 的图片,查看我的截图
- codenameone - 如何拦截AndroidTV盒子上的后退按钮不关闭AndroidTV应用程序但行为类似于工具栏上的后退按钮
- matplotlib - 使用循环在 Python 中填充 matplotlib 图
- c# - 智能卡的 C# RSA 解密问题 - 填充未从结果中删除
- javascript - 收到请求/通知时更改所有客户端中的 DOM
- matplotlib - matplotlib 条形图标题文本换行缩小绘图区域
- c++ - OpenCV 线粘在一起
- reactjs - Hook 已更新但不会触发重新渲染