[BUG] CommandBehavior not found when using global xmlns
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
調査の方向性
リンクされた TaskManagerApp の再現とそのグローバル xmlns ファイルから始め、次に EventToCommandBehavior エラーと、ViewModel の Init メソッドに対する IntelliSense の欠落を再現します。グローバル xmlns 定義がある場合とない場合の動作を比較します。完了条件は、アプリが引き続きビルドでき、Visual Studio が誤ったエラーや IntelliSense の欠落を報告しないことです。
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
NOTE: THIS IS NOT A BUG, BUUT I DID NOT KNOW WHERE TO PUT IT
I made my global file like this
`//
// Tus namespaces
//
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "TaskManagerApp.Controls")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "TaskManagerApp.Models")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "TaskManagerApp.ViewModels")]
//
// CommunityToolkit.Maui (TODOS los namespaces necesarios)
//
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "CommunityToolkit.Maui")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "CommunityToolkit.Maui.Behaviors")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "CommunityToolkit.Maui.Extensions")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "CommunityToolkit.Maui.Core")]`
The app work perfectly
but the error is that appear is annoying
The type 'EventToCommandBehavior' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
also if you create a Init method in your vm, intelisense dont work
Expected Behavior
VS dosent output any errors
Steps To Reproduce
Create a project
create a globbal xmlns file like mane
put a eventToCommand
Link to public reproduction project repository
https://github.com/eduardoagr/TaskManagerApp
Environment
- .NET MAUI CommunityToolkit:
- OS:
- .NET MAUI:
Anything else?
No response
- 主要言語
- C#
- スター
- 2.7k
- フォーク
- 503
- 平均マージ
- 11時間 10分
- マージ済み PR(30日)
- 50
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommunityToolkit/Maui のほかの issue
-
new proposal
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
CommunityToolkit/Maui#3449 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug unverified
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
CommunityToolkit/Maui#3443 ·
メンテナーはふだん 1 日以内に返信
-
[Proposal] Keep the device tests on the newest OS releases automatically対応中かも @TheCodeTraveler が 4 日前に担当しました。 オープンapproved champion proposal
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
CommunityToolkit/Maui#3438 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
new proposal
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
CommunityToolkit/Maui#3436 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] The popup positioning changing if SetShouldUseStatusBarBehaviorOnAndroidModalPage is trueオープンbug unverified
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
CommunityToolkit/Maui#3425 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
CommunityToolkit/Maui の issue をすべて見る
似ている issue
-
[Linux] The portal's color-scheme 0 (no preference) means light, not "not known"対応中かも @ramlanrinos が今日担当しました。 オープンarea: linux bug ready
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ZaidX88/sluice#284 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Unit converter reads out of bounds when the saved UnitConverterPreferences setting is malformedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
microsoft/calculator#2532 ·
-
area: scaffold status: needs-tests
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
provider:flagd type:fix
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
open-feature/dotnet-sdk-contrib#789 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信