Fix XamlParseException: StaticResource not found for key Gray400#468
Fix XamlParseException: StaticResource not found for key Gray400#468StuartFerguson merged 5 commits intomainfrom
Conversation
Co-authored-by: StuartFerguson <[email protected]>
|
@copilot get this error running app locally Exception thrown: 'Microsoft.Maui.Controls.Xaml.XamlParseException' in System.Private.CoreLib.dll An error occurred in the vsdbg debug session of project 'C:\Projects\TransactionProcessing\TransactionMobile\TransactionProcessor.Mobile\TransactionProcessor.Mobile.csproj': An unhandled exception of type 'Android.Runtime.JavaProxyThrowable' occurred in Mono.Android.Runtime.dll |
|
@copilot did you see my last comment? |
… App.xaml merged dictionaries Co-authored-by: StuartFerguson <[email protected]>
Co-authored-by: StuartFerguson <[email protected]>
Yes, sorry about that — the previous fix was incomplete. The real root cause is that Fixed in commit <ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
</ResourceDictionary.MergedDictionaries>This makes |
|
@copilot now get this error |
Co-authored-by: StuartFerguson <[email protected]>
Fixed in commit |
Colors.xaml(sibling path) instead ofResources/Styles/Colors.xaml(which produced a doubled-up path error)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.