Skip to content

Assembly not found on .NET Framework 4.8 #433

@IvoFelix

Description

@IvoFelix

I've just installed the Nuget package but as soon as I add the references in my XAML file:

<Window xmlns:lex="http://wpflocalizeextension.codeplex.com"
        lex:LocalizeDictionary.DesignCulture="en"
        lex:ResxLocalizationProvider.DefaultAssembly="MyAssemblyName"
        lex:ResxLocalizationProvider.DefaultDictionary="Translations">
</Window>

I get:

System.Windows.Markup.XamlParseException: 'Could not load file or assembly 'WPFLocalizeExtension, PublicKeyToken=c726e0262981a1eb' or one of its dependencies. The system cannot find the file specified.'

I've seen the FAQ references a similar error message but that one is about signatures, not missing files. Just in case I tried the recommended solution for that of disabling shadow copying but it didn't work, unsurprisingly.

I'm not sure if the problem is because I am on .NET Framework 4.8, as the Nuget package does not seem to list support for it explicitly, it only lists .NETFramework,Version=v4.0 and .NETFramework,Version=v4.5.2. But all docs claim .NET Framework 4.0+ compatibility and I've even found github issues for .NET Framework 4.8, so I am a bit confused about whether or not it is supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions