Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

iOS Build Succeeds but NewBindingMaciOS Namespace Not Found in MainPage.xaml.cs

オープン
#98 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, ios

調査の方向性

MainPage.xaml.cs と issue に示されている条件付きの ProjectReference から始め、その後、NewBinding.MaciOS.Binding プロジェクトの出力を MAUI のターゲットフレームワークと比較します。iOS および Mac Catalyst のビルドで名前空間 NewBindingMaciOS.DotnetNewBinding が解決され、MAUI プロジェクトが正常にビルドできれば完了です。

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

説明

Description

When building the project, the build succeeds and the framework is generated. However, when trying to use the iOS binding in [MainPage.xaml.cs] I get the following error is The type or namespace name 'NewBindingMaciOS' could not be found (are you missing a using directive or an assembly reference?)

Steps to Reproduce
  1. Build the solution, including the NewBinding.MaciOS.Binding project.
  2. Build the Maui project.
    2.In the Maui project (e.g., MainPage.xaml.cs), add the following code:
#if IOS || MACCATALYST
using NewBinding = NewBindingMaciOS.DotnetNewBinding;
#endif
<!-- Reference to MaciOS Binding project -->
	<ItemGroup Condition="$(TargetFramework.Contains('ios')) Or $(TargetFramework.Contains('maccatalyst'))">
        <ProjectReference Include="..\macios\NewBinding.MaciOS.Binding\NewBinding.MaciOS.Binding.csproj" />
    </ItemGroup>

Please advise how to ensure the iOS binding is correctly referenced and available in the Maui project.

Link to public reproduction project repository

No response

Environment
  • OS: Mac 15
  • .NET MAUI: 9.0
  • Target platforms: IOS, Mac catalyst.
主要言語
C#
スター
249
フォーク
48
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

CommunityToolkit/Maui.NativeLibraryInterop のほかの issue

CommunityToolkit/Maui.NativeLibraryInterop の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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