Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] XamlC error XFC0000 : Cannot resolve type "Popup" #1393

Closed
fredericoregateiro opened this issue Jun 12, 2021 · 5 comments
Closed

[Bug] XamlC error XFC0000 : Cannot resolve type "Popup" #1393

fredericoregateiro opened this issue Jun 12, 2021 · 5 comments
Labels
bug Something isn't working. Breaky break. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

Comments

@fredericoregateiro
Copy link

Description

When using a Popup the project build is ok, it can be deployed to an emulator or device but the Error List shows this error

Steps to Reproduce

  1. Create a Popup
  2. Build the project

Expected Behavior

Build with no errors and the error list empty

Actual Behavior

Error in the Error List
XamlC error XFC0000 : Cannot resolve type "Popup"

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE: VS 2019 16.10.1
  • Platform Target Frameworks:
    • iOS: not tested
    • Android: 11
    • UWP: not tested
  • Android Support Library Version:
  • Nuget Packages: Xamarin.CommunityToolkit 1.1.0 and 1.2.0 preview 2
  • Affected Devices:

Workaround

Reproduction imagery

Reproduction Link

@fredericoregateiro fredericoregateiro added bug Something isn't working. Breaky break. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged. labels Jun 12, 2021
@jfversluis
Copy link
Member

Similar to #1311 and #1384

@AmrAlSayed0
Copy link
Contributor

@jfversluis Also here rotorgames/Rg.Plugins.Popup#619
Apparently, It has to do with URL names spaces. Using the fully qualified Namespace will solve the issue but it doesn't explain why it is happening though

@jfversluis
Copy link
Member

Yeah I think it's more of a tooling issue than something we can fix unfortunately

@fredericoregateiro
Copy link
Author

I try using the full namespace
xmlns:xctViews="clr-namespace:Xamarin.CommunityToolkit.UI.Views;assembly=Xamarin.CommunityToolkit"

and the errors are gone

@semihbilis
Copy link

semihbilis commented Jun 19, 2022

I deleted this from namespace on xaml side
xmlns:popups="clr-namespace:{FilePath}" x:DataType="popups:{FileName}"
and solved, but i don't understand how it got there, you may not have

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working. Breaky break. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.
Projects
None yet
Development

No branches or pull requests

4 participants