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.
18 lines
492 B
18 lines
492 B
1 year ago
|
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}",
|
||
|
};
|
||
|
}
|
||
|
}
|