dotnet / dotnet/samples

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

Open
#6,981 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
5.1k
Avg merge
9h 11m
Merged PRs (30d)
1

Description

**Before you open an issue**

If the issue is:
[DllMapDemo](https://github.com/dotnet/samples/tree/main/core/extensions/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](https://github.com/user-attachments/assets/3cf725ee-a153-45ab-aea0-f2221b7c84cd)

[<]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).

- [X] .NET Core
- [ ] .NET Framework
- [ ] .NET Standard

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


```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.