CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

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

Đang mở
#98 5 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
249
Fork
48
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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
```
```




```
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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với MainPage.xaml.cs và ProjectReference có điều kiện được hiển thị trong issue, sau đó so sánh đầu ra của dự án NewBinding.MaciOS.Binding với các framework đích của MAUI. Được xem là hoàn tất khi namespace NewBindingMaciOS.DotnetNewBinding được phân giải trong các bản build iOS và Mac Catalyst, đồng thời dự án MAUI build thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp, ios
Lĩnh vực
build-system, mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.