iOS Build Succeeds but NewBindingMaciOS Namespace Not Found in MainPage.xaml.cs
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- csharp, ios
- 領域
- build-system, mobile
調査の方向性
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
- Build the solution, including the NewBinding.MaciOS.Binding project.
- 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommunityToolkit/Maui.NativeLibraryInterop のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
CommunityToolkit/Maui.NativeLibraryInterop#107 · コメント 8 件 · リアクション 1 件 ·
-
Android dependenciesオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
CommunityToolkit/Maui.NativeLibraryInterop#106 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
CommunityToolkit/Maui.NativeLibraryInterop#105 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 3〜5日 初心者へのやさしさ 30/100
CommunityToolkit/Maui.NativeLibraryInterop#101 · コメント 3 件 · リアクション 4 件 ·
CommunityToolkit/Maui.NativeLibraryInterop の issue をすべて見る
似ている issue
-
go 🏃 testing 🧪
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#7239 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15462 ·
メンテナーはふだん 1 日以内に返信
-
:watch: Not Triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
comp:instrumentation.aspnetcore
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-telemetry/opentelemetry-dotnet-contrib#5427 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs-triage pkg:OpenTelemetry
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-telemetry/opentelemetry-dotnet#7851 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信