ExtensionDirectoryResolver Class#
Resolves the set of directories scanned for extension assemblies. Combines any host-configured directories with a stable per-user managed directory that the marketplace installs into, creating the managed directory on first use so installs survive across sessions.
public static class ExtensionDirectoryResolver
Inheritance System.Object → ExtensionDirectoryResolver
Methods#
GetDefaultManagedDir() Method#
Returns the per-user managed extensions directory:
%APPDATA%\verso\extensions on Windows, ~/.verso/extensions elsewhere.
This path is stable across sessions (unlike a temp directory) so installed
extensions persist.
public static string GetDefaultManagedDir();
Returns#
Resolve(IEnumerable<string>, string) Method#
Returns the ordered, de-duplicated list of directories to scan: the configured directories followed by the managed directory. The managed directory is created if it does not yet exist and is reported via managedDir. Non-existent configured directories are kept in the list so the caller can skip or warn per entry.
public static System.Collections.Generic.IReadOnlyList<string> Resolve(System.Collections.Generic.IEnumerable<string?>? configuredDirs, out string managedDir);
Parameters#
configuredDirs System.Collections.Generic.IEnumerable<System.String>
managedDir System.String