microsoft / WPF-Samples

Repository for WPF related samples
MIT License
4.94k stars 3.18k forks source link

WPF samples with NET 9.0 preview 5 crashing #610

Open rohitgonsalves opened 5 days ago

rohitgonsalves commented 5 days ago

Downloaded the WPF-Samples Installed NET 9.0 preview 5 SDK Built the samples and also WPF-Gallery WPF-Gallery starts well without icons and on clicking on any sample, The program crashes with the following exception

System.Windows.Markup.XamlParseException HResult=0x80131501 Message='Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.' Line number '62' and line position '37'. Source= StackTrace:

This exception was originally thrown at this call stack: [External Code] Inner Exception 1: Exception: Cannot find resource named 'TextFillColorPrimaryBrush'. Resource names are case-sensitive.
anjali-wpf commented 4 days ago

@rohitgonsalves - For me it is running as expected, I tried running gallery app on fresh vm, sharing configurations -

.net 9.0.100-preview.5.24307.3 Microsoft Visual Studio Community 2022 (64-bit) - Version 17.10.3 Edition Windows 11 Enterprise Insider Preview Version Dev Installed on ‎6/‎18/‎2024 OS build 27645.1000 Experience Windows Feature Experience Pack 1000.27645.1000.0

You can try running it again, if issue persists then share configuration, I will assist you accordingly.