SOLVED

DLLs missing when running MSIX packaged Application after updating from .NET Framework 4.8 to .NET 6

%3CLINGO-SUB%20id%3D%22lingo-sub-3297728%22%20slang%3D%22en-US%22%3EDLLs%20missing%20when%20running%20MSIX%20packaged%20Application%20after%20updating%20from%20.NET%20Framework%204.8%20to%20.NET%206%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3297728%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I've%20been%20using%20MSIX%20now%20for%20a%20few%20years%20without%20any%20real%20issues%20for%20my%20WPF%20.NET%20Framework%204.8%20application%2C%20but%20after%20updating%20it%20to%20.NET%206%20I'm%20getting%20errors%20with%20missing%20dlls.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Valdimar_Thor_0-1651155536820.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367651iDA3049D83693FE0F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Valdimar_Thor_0-1651155536820.png%22%20alt%3D%22Valdimar_Thor_0-1651155536820.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eto%20create%20the%20msix%20package%20I'm%20running%20the%20command%20as%20follows%3A%3CBR%20%2F%3E%3CSPAN%3EC%3A%5CProgram%20Files%20(x86)%5CWindows%20Kits%5C10%5Cbin%5C10.0.19041.0%5Cx64%5Cmakeappx.exe%22%20pack%20%2Fd%20C%3A%5CBuilds%5CMyApp%5CVersions%5C1.0.0.1%5C%20%2Fp%20C%3A%5CReleases%5CMyApp%5CVersions%5CMyApp-1.0.0.1.msix%20%2Fv%20%2Fo%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI've%20added%20the%20windows%20packaging%20project%20to%20my%20solution%20and%20reference%20the%20WPF%20project%20but%20with%20same%20results.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20there%20something%20I'm%20missing%20here...well%20there%20must%20be%20but%20I%20have%20no%20idea%20what%20it%20is.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%20Valdimar%20Thor%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3301586%22%20slang%3D%22en-US%22%3ERe%3A%20DLLs%20missing%20when%20running%20MSIX%20packaged%20Application%20after%20updating%20from%20.NET%20Framework%204.8%20to%20.N%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3301586%22%20slang%3D%22en-US%22%3E%3CP%3EConsider%20this%20closed.%3C%2FP%3E%3CP%3EI'm%20using%20the%20PRISM%20library%20and%20it's%20config%20catalog%20to%20load%20the%20dlls%20and%20that%20seems%20to%20be%20the%20problem.%20As%20soon%20as%20I%20changed%20it%20to%20the%20default%20module%20catalog%2C%20everything%20worked%20as%20intended.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi, I've been using MSIX now for a few years without any real issues for my WPF .NET Framework 4.8 application, but after updating it to .NET 6 I'm getting errors with missing dlls. 

Valdimar_Thor_0-1651155536820.png

to create the msix package I'm running the command as follows:
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\makeappx.exe" pack /d C:\Builds\MyApp\Versions\1.0.0.1\ /p C:\Releases\MyApp\Versions\MyApp-1.0.0.1.msix /v /o

I've added the windows packaging project to my solution and reference the WPF project but with same results. 

Is there something I'm missing here...well there must be but I have no idea what it is.

 

Regards Valdimar Thor

1 Reply
best response confirmed by Valdimar_Thor (New Contributor)
Solution

Consider this closed.

I'm using the PRISM library and it's config catalog to load the dlls and that seems to be the problem. As soon as I changed it to the default module catalog, everything worked as intended.