-
Notifications
You must be signed in to change notification settings - Fork 471
[Bug]Error: : XamlC error XFC0000 : Cannot resolve type "Shield" #1311
Comments
I've seen this a couple of times... Any reason you discarded the rest of the report template? Because I would love to know if you're using Visual Studio on Windows or Mac for instance. If you could complete it with the missing info as much as possible that would be great. Could you try deleting your bin & obj folders from each project folder on the filesystem and see if it still occurs? Not sure if it's any help, I see the same thing happened to Forms here at some point. |
Thanks JFVerluis. I deleted the bin and obj folders from each project folder and recompiled but unfortunately, the same error is still present. As for the additional information, see below:
***Gerald, big fan of your you tube videos --- watched the one last night on toast and snackbar -- well done. |
Hello. I having the same issue. I have updated and downgraded the nuget, remove bin, obj and .vs folders, updated VS... and the issue is still there. Is there any news about that? |
No update that I am aware of. Problem is still unresolved at my end. |
It seems it is a cache problem. I have run a maintenance task on Onyx and VS is already working fine :) |
As mentioned in other related issues, this is more a tooling issue than an XCT issue. We can't do too much here :( As far we know you should be able to build and run your app even with those errors |
Hi, There's a workaround where replacing URIs with clr-namespaces gets rid of those errors. For instance, replace
with
I hope it helps! |
Hello, @MarcosCobena In general: The error is: Any other suggestions for how I can overpass this issue in the pipeline will be appreciated, thanks. |
This workaround is working for me. Thanks for the tip. |
How is xct defined? |
It also doesn't work for me! Because this error, HotReload don't work for me. It always fails with this error. |
Just to double check for those of you who still see the error: have you reviewed every namespace? It happened to me I had four or five different XAMLs failing, not just one. |
ty so much! |
The workaround did not work for me. Sigh - when will next tooling update happen for VS for Mac? |
A couple of notes on this issue.
_ = new AsyncCommand(async () => {}); This assumes that you are NOT already using anything from XCT in code.
|
same issue |
Clearing the bin & obj folders resolved this for me (Windows) |
it doesn't solve #1562 though |
@bricefriha @pulmuone and others, can you please try this nuget and let me know if that works for you? Please make sure to delete the current XCT package, clean up everything (deleting bin/obj) and the install this package |
For me it solved the "Cannot Resolve type "TouchEffect"" error. Thx! |
Same prob with xct:eventtocommandbehavior. Applying: xmlns:xct="clr-namespace:Xamarin.CommunityToolkit.Behaviors;assembly=Xamarin.CommunityToolkit" instead of "xmlns:xct="http://xamarin.com/schemas/2020/toolkit" worked for me. Microsoft Visual Studio Professional 2022 (64-bit) Version 17.0.4 |
@axeldietz do you mind trying this package and seeing if it works for you? |
Hi Pictos, Thanks for your prompt reply. Yes, this package works! Thanks a lot. |
I'm getting this error on an azure pipeline agent.
Although I'd say its quite hacky, I've tried with the latest version of the toolkit ( The solution is hard to test since the solution does build locally on windows & mac, its just the cloud agent that gets this error. Any ideas? |
You can install XCT version 1.1.0 and its done :)) |
Are you running the exact same steps locally as you are on your cloud agents? |
I'm getting this issue when building azure pipelines, the build fails, none of above worked for me how do you set following name space guys? when I set it complains that cannot resolve the type. Thanks |
This issue is closed, would you be able to open a new issue including the details of the issue that you are seeing. Thanks |
I also have a same problem XamlC error XFC0000 : Cannot resolve type "Page"., I try 2 way but nothing work |
Description. Error: : XamlC error XFC0000 : Cannot resolve type "Shield"
Steps to Reproduce
Subject="Software Version Number"
Status="on discord"
StatusBackgroundColor="SeaGreen"
StatusTextColor="White"
Margin="2,0"
HeightRequest="30"
HorizontalOptions="Start"/>
in xaml
Expected Behavior
Expect Shield to Appear without error and intelisense to work in xaml.cs page
Actual Behavior
intelisense does not work in xaml.cs page -- intelisense indicates Shield not found. Further when compiling, xaml produces error above -- Error: : XamlC error XFC0000 : Cannot resolve type "Shield".
Interestingly, the shield does appear in app when run.
Basic Information
Would appreciate any suggestions to resolve. None found in searching so far.
The text was updated successfully, but these errors were encountered: