Skip to content

.Net Framework 4.7.2, XAML not working for EXE #369

@barkermn01

Description

@barkermn01

Using it to pack DLL's into an EXE and for some reason it's not working when i try and run the app i just get think it might be because it's using mainwindow.xaml and not MainWindow.xaml it's about the only thing i can think it could be.

System.IO.IOException: Cannot locate resource 'mainwindow.xaml'.
   at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
   at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()

I'm running it like this:

/log /verbose /pause /targetplatform:v4 /out:Memoria.Launcher.Merged.exe Memoria.Launcher.exe ZstdSharp.dll SharpCompress.dll System.Buffers.dll System.Memory.dll System.Numerics.Vectors.dll System.Runtime.CompilerServices.Unsafe.dll System.Text.Encoding.CodePages.dll **System.Threading.Tasks.Extensions.dll

I have tried not using the `/targetplatform' as well same problem

In the /verbos /log does tell me it has packaged the MainWindow.

Processing XAML resource paths ...
 - Patching type Memoria.Launcher.AdvOptionsWindow
 - Patching type Memoria.Launcher.UiModManagerButton
 - Patching type Memoria.Launcher.MainWindow
 - Patching type Memoria.Launcher.UiLauncherButton
 - Patching type Memoria.Launcher.ModConflictWindow
 - Patching type Memoria.Launcher.ModManagerWindow

Code is: https://github.com/barkermn01/Memoria/tree/feature/archives

The build command is part of our Memoria.MSBuild Project in Pack.cs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions