LoaderSearchPathOverride and the Manifest

MVP

Current documentation on this Uap6 schema element appears at odds with the schema validation.

 

Extension (in Package/Extensions) (Windows 10) - Windows UWP applications | Microsoft Docs

and

uap6:LoaderSearchPathOverride - Windows UWP applications | Microsoft Docs

 

Both claim that the extension should be added as a package extension instead of an application extension.  The following is from a manifest that produces an invalid document when validated against the schemas and/or attempted to build a package using makeappx:

 

...

</Applications>
<Extensions>
<Extension Category="windows.loaderSearchPathOverride">
<uap6:LoaderSearchPathOverride>
<uap6:LoaderSearchPathEntry FolderPath="VFS\AppVPackageDrive\TestAppPathAlternate"/>
</uap6:LoaderSearchPathOverride>
</Extension>
</Extensions>
</Package>

Capture.PNG

1) Would it be correct to assume that this should be implemented as an application extension against the application that requires these paths?

 

2) if so, how would one assign to an exe in the package that is not exposed as an application entry (since it appears that all application entries in the manifest are required to have a VisualElements, which leads to a start menu item not desired)?

 

2 Replies

@TIMOTHY MANGAN Update:

 

I can confirm that the following sequence validates against the schema, and that makeappx creates a package, however the package fails to install via AppInstaller (20H2).  Event logs show error 70490 (element not found).

 

...

<Extensions>
<uap6:Extension Category="windows.loaderSearchPathOverride">
<uap6:LoaderSearchPathOverride>
<uap6:LoaderSearchPathEntry FolderPath="VFS\AppVPackageDrive\TestAppPathAlternate"/>
</uap6:LoaderSearchPathOverride>
</uap6:Extension>
</Extensions>
</Application>
</Applications>
</Package>

Good news. It appears that the online documentation is incorrect (or at least highly misleading). Moving this to a package level extension solves the issue and the application sees the dlls in the registered path.