[XamlC] Collection was modified; enumeration operation may not execute. #17563
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
t/bug
Something isn't working
Description
If you have
<?xaml-comp compile="true" ?>
enabled in your ResourceDictionary, it will fail to compile with a enumeration error.https://github.com/davidortinau/ControlGallery/blob/main/src/ControlGallery/Resources/Styles/DefaultStyles.xaml#L1-L6
Steps to Reproduce
Add a resourcedictonary file and set XamlC to compile.
Link to public reproduction project repository
https://github.com/davidortinau/ControlGallery
Version with bug
8.0.0-rc.1.9171
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
No response
Did you find any workaround?
Disable XamlC
Relevant log output
The text was updated successfully, but these errors were encountered: