DEV Community

A DLL wouldn't load on my Mac, so I built pefix (opens in new tab)

Discussed on DEV

I was modding a Unity game on my Mac. The mod shipped as a .NET DLL and wouldn't load: the IL was plain managed code, but the assembly header was stamped for Windows x64, so the runtime refused it. I opened the PE header, flipped the bits that pin it to a platform back to AnyCPU, and it loaded. That became pefix fix. The header turned out to be the easy case. The failures that actually bite are about the folder around the DLL: a dependency that never got copied, two copies of one assembly at ...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help