Skip to content

Repacking WPF apps with /internalize /renameinternalized problem #406

@IlyaNavodkin

Description

@IlyaNavodkin

Hello!

I have exception in runtime in my WPF application. i use /internalize /renameinternalized arguments.

Image

Exception in Init window/
Image

Research my IL code, i see this think.

Image

Image

ILRepack dont change name in XAML. Could this be the problem? After all, the XAML\BAML code refers to a type with an OLD name (without GUID)

Use this command

<Exec Command="$(ILRepack) /out:$(TargetDir)/out/$(AssemblyName).dll $(TargetPath) $(DllList) /target:library /targetplatform:v4 /lib:$(TargetDir) /log:$(TargetDir)ilrepack.log /copyattrs /allowMultiple /verbose /internalize /renameinternalized" />

What are the solutions to this problem? I definitely need to implement my own UI library

THX :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions