Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cil: fix native library loading on macOS (beta-3.0) #513

Merged
merged 5 commits into from Sep 10, 2023

Conversation

mortend
Copy link
Member

@mortend mortend commented Sep 9, 2023

cil: uno-mac-loader-x64 -> 3.0.0-beta.2

Like the previous commits but for the mac loader.

app-win: implement dll-import resolver

Like the previous commit but for the windows loader.

This is generally not required on Windows, but might help with
fuse-x/studio#20.

app-console: implement dll-import resolver

This checks all assemblies being loaded, and sets up a custom dll-import
resolver for assemblies where "Uno.DllImportResolver" is "true".

app-console: add runtimeconfig.template.json

Enable UNIX support in System.Drawing.Common, needed to run Fuselibs
tests on macOS.

cil: emit runtime metadata to assemblies

Emit whether the assembly contains P/Invoke and what version of Uno was
used to produce the assembly.

This information is used to selectively enable the DllImportResolver in
app-loaders, required to successfully load native libraries on macOS
while running Fuselibs tests after upgrading to .NET 6.0.

@mortend mortend changed the title cil: fix native library loading on macOS cil: fix native library loading on macOS (beta-3.0) Sep 9, 2023
mortend added a commit to fuse-open/mac-loader that referenced this pull request Sep 10, 2023
Emit whether the assembly contains P/Invoke and what version of Uno was
used to produce the assembly.

This information is used to selectively enable the DllImportResolver in
app-loaders, required to successfully load native libraries on macOS
while running Fuselibs tests after upgrading to .NET 6.0.
Enable UNIX support in System.Drawing.Common, needed to run Fuselibs
tests on macOS.
This checks all assemblies being loaded, and sets up a custom dll-import
resolver for assemblies where "Uno.DllImportResolver" is "true".
Like the previous commit but for the windows loader.

This is generally not required on Windows, but might help with
fuse-x/studio#20.
Like the previous commits but for the mac loader.
@mortend mortend merged commit 15c4240 into fuse-open:beta-3.0 Sep 10, 2023
1 check passed
@mortend mortend deleted the dll branch September 10, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant