Skip to content

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

Open
@DeafMan1983

Description

@DeafMan1983

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions