[9.0.100-preview.7.24375.12] Text-Grab launch failed with exception System.Windows.Markup.XamlParseException at System.Windows.DependencyObject.EvaluateExpression #492
Labels
bug
Something isn't working
Describe the bug
This is a heads-up for you, when running this app with .NET 9, it fails to be launched with an exception:
System.Windows.Markup.XamlParseException: ''Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '17' and line position '18'.'
After dev team investigated, it is reproduced as this application uses aDynamicResource
incorrectly. Please see more details from dotnet/wpf#9475To Reproduce
Steps to reproduce the behavior:
1.Open "C:\ReproAppSource\Text-Grab\Text-Grab.sln" with Visual Studio.
2. Build the solution.
3. Update bin\Debug\net8.0-windows10.0.20348.0\Text-Grab.runtimeconfig to run against with dotnet-sdk-9.0.100-preview.7.24375.12:
Expected behavior
App should be launched successfully.
Actual behavior
App launch failed with exception thrown in Visual Studio:
The text was updated successfully, but these errors were encountered: