question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] 2 Projects in a solution gives Cannot resolve type "http://schemas.microsoft.com/dotnet/2022/maui/toolkit:SetFocusOnEntryCompletedBehavior".

See original GitHub 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?

Current Behavior

Hi I was really excited to start working with the maui toolkit, and I hope is something I have missed.

If you have a single project all works fine and you dont see the issue , but in a real world project where my main projects reference other Maui class libraries with views and models that are shared you get the error,

Expected Behavior

You should be able to use MCT with many projects and not just a single one. You would not be able to use with Prism Modules or any maui class library that has views in it

Steps To Reproduce

  1. Create a maui app
  2. Add .UseMauiCommunityToolkit() to maui project
  3. add a maui class library
  4. add a Page to a class library
  5. Add an entry with a behavior
  6. build the project and you will see

Error XFC0000 Cannot resolve type “http://schemas.microsoft.com/dotnet/2022/maui/toolkit:SetFocusOnEntryCompletedBehavior”.

Link to public reproduction project repository

https://github.com/gabsamples6/MauiAppSampleMCT

Environment

- .NET MAUI CommunityToolkit: 4.0
- iOS: 16.3
- OS: Windows 11 22H2
- .NET MAUI: 7.0.52

Anything else?

I really appreciate the work you guys do for FREE… If you could easily spot where its going wrong and issue a release that would be fantastic.

We cannot use this library till this is sorted

Many thanks gab

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
pictoscommented, Feb 14, 2023

@brminnick I suggest doing anything that can make people feel comfortable about using MCT on libs… Give me some time I’ll open a discussion with some scenarios that could be dangerous, that way we can discuss that and see if makes sense to make MCT lib friendly or not

0reactions
hosamyousofcommented, Feb 15, 2023

@pictos We appreciate if you give a work around to make MCT work on libs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown build error Cannot resolve dependency to ...
I have received this error message for another (non-GAC, custom) assembly. In my case, the situation was as follows:.
Read more >
Visual Studio 2022 Community Project not load solution
Open Developer Command Prompt for VS 2022 Community > type and run devenv /ResetSettings . Right-click VS 2022 and run it as administrator....
Read more >
Visual Studio 2022 doesn't contain project, doesn't build a ...
Visual Studio 2022 doesn't contain project, doesn't build a solution and doesn't create projects in the designated folder. - Microsoft Q&A.
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
This error occurs when you attempt to build a project that contains references to one or more NuGet packages, but those packages are...
Read more >
The application which this project type is based on was not ...
My master branch loads just fine on workstation 1, but I wanted to test that I could download and build the repository on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found