Skip to content

I am getting an exception when using the preview 7 SDK in a WPF project using the new fluent.xaml. The pasted lines (line number 17-19 in the code) throws an exception: #9580

Closed

Description

@jeffhandley

Originally posted by @tivik7 in dotnet/core#9448 (comment)

I am getting an exception when using the preview 7 SDK in a WPF project using the new fluent.xaml. The pasted lines (line number 17-19 in the code) throws an exception:

        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/PresentationFramework.Fluent;component/Resources/Fluent.xaml" />
        </ResourceDictionary.MergedDictionaries>

Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '82' and line position '18'.

with the inner exception:

IOException: Cannot locate resource 'resources/fluent.xaml'.

Workloads, Visual Studio Preview, NuGets and dotnet preview 7 all installed without errors.

Activity

  1. transferred this issue fromdotnet/coreon Aug 15, 2024
  2. added
    binaryformatter-migration
    on Aug 15, 2024
  3. added this to the 9.0.0 milestone on Aug 15, 2024
  4. thurrott commented on Aug 15, 2024

    @thurrott

    I'm seeing this error as well. x64 and Arm64 VS 2022 17.12 Preview with .NET 9 Preview 7

  5. ThomasGoulet73 commented on Aug 16, 2024

    @ThomasGoulet73
    Contributor

    I think the path changed in Preview 7 and it looks like it's supposed to now be pack://application:,,,/PresentationFramework.Fluent;component/Themes/Fluent.xaml.

  6. tivik7 commented on Aug 16, 2024

    @tivik7

    Themes

    Changing from

    pack://application:,,,/PresentationFramework.Fluent;component/Resources/Fluent.xaml

    to:

    pack://application:,,,/PresentationFramework.Fluent;component/Themes/Fluent.xaml

    resolved the exception. Thx @ThomasGoulet73

  7. thurrott commented on Aug 16, 2024

    @thurrott

    I think the path changed in Preview 7 and it looks like it's supposed to now be pack://application:,,,/PresentationFramework.Fluent;component/Themes/Fluent.xaml.

    This is correct. Thank you!

  8. thurrott commented on Aug 16, 2024

    @thurrott

    Themes

    Changing from

    pack://application:,,,/PresentationFramework.Fluent;component/Resources/Fluent.xaml

    to:

    pack://application:,,,/PresentationFramework.Fluent;component/Themes/Fluent.xaml

    resolved the exception. Thx @ThomasGoulet73

    This is correct. Thank you!

  9. added and removed
    binaryformatter-migration
    on Aug 16, 2024
  10. pchaurasia14 commented on Aug 16, 2024

    @pchaurasia14
    Contributor

    @ThomasGoulet73 - Thanks for the help.
    I've updated the documentation as well.

  11. removed this from the 9.0.0 milestone on Aug 16, 2024
  12. locked and limited conversation to collaborators on Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions