/// <summary> /// Gets the path of the directory to load the Zero Install OneGet provider assembly from. /// </summary> /// <returns>The full path of the directory containing the provider assembly.</returns> private string GetProviderDirectory() { using var handler = new OneGetHandler(_request); return(Path.GetDirectoryName(ProgramUtils.GetStartInfo(handler).FileName)); }