/// <summary></summary> /// <param name="pack">The associated package</param> /// <param name="uppm">The executing package manager</param> public ScriptHost(Package pack, IUppmImplementation uppm) : this() { PackageManager = uppm; Pack = pack; }
/// <summary> /// Gets the name which will be used system wide to differentiate between uppm implementations /// </summary> /// <returns></returns> public static string GetSystemName(this IUppmImplementation impl) { return(string.IsNullOrWhiteSpace(impl.ShortName) ? "uppm" : $"uppm{SystemNameSeparator}{impl.ShortName}"); }