You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
492 B
17 lines
492 B
using StabilityMatrix.Core.Models.Packages; |
|
|
|
namespace StabilityMatrix.Core.Models; |
|
|
|
public class UnknownInstalledPackage : InstalledPackage |
|
{ |
|
public static UnknownInstalledPackage FromDirectoryName(string name) |
|
{ |
|
return new UnknownInstalledPackage |
|
{ |
|
Id = Guid.NewGuid(), |
|
PackageName = UnknownPackage.Key, |
|
DisplayName = name, |
|
LibraryPath = $"Packages{System.IO.Path.DirectorySeparatorChar}{name}", |
|
}; |
|
} |
|
}
|
|
|