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

DllMapDemo Why do you use Assembly? But I want to use NativeAOT then it happens cause Assembly doesn't work for NativeAOT #6981

Open
1 of 3 tasks
DeafMan1983 opened this issue Jul 29, 2024 · 0 comments

Comments

@DeafMan1983
Copy link

Before you open an issue

If the issue is:
DllMapDemo
That is why Assembly and Marshal can't be successful for NativeAOT.

Issue description
Check out:
If I ran test from directory native
image

[<]Problem replacement with string as path to XML and read it.]

Target framework
Net 8.x

Check the .NET target framework(s) being used, and include the version number(s).

  • .NET Core
  • .NET Framework
  • .NET Standard

How do I pass current operating system if I use like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<dllmap dll="libglib2" os="Windows" target="libglib-2.0-0"/>
	<dllmap dll="libglib2" os="Linux" target="libglib-2/>
	<dllmap dll="libglib2" os="MacOS" target="libglib-2.0"/>
</configuration>

I need to know without Assembly in NativeAOT support. Thanks!

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

No branches or pull requests

1 participant