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

オープン
#6,981 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp

調査の方向性

DllMapDemo サンプルから始め、native ディレクトリと、そのテストまたは実行手順を調べてください。XML マッピングがどのように読み込まれ、現在のオペレーティング システムがどのように選択されるかを追跡し、そのうえで Assembly や Marshal を使わずに NativeAOT がサポートできるものを判断してください。サンプルに記載された NativeAOT パスが OS 固有のマッピングを処理し、.NET 8 上で正常に実行できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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!

主要言語
C#
スター
3.7k
フォーク
5.1k
平均マージ
19時間 47分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/samples のほかの issue

dotnet/samples の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。