public bool Equals(ToolManifestPackage other) { return(PackageId.Equals(other.PackageId) && EqualityComparer <NuGetVersion> .Default.Equals(Version, other.Version) && CommandNamesEqual(other.CommandNames) && FirstEffectDirectory.Value.TrimEnd('/', '\\') .Equals(other.FirstEffectDirectory.Value.TrimEnd('/', '\\'), StringComparison.Ordinal)); }
public bool SamePackageId(string otherPackageId, bool ignorePostfix = false) { if (PackageId == null) { return(false); } if (ignorePostfix) { return(packageIdLowerCase.Equals(otherPackageId, StringComparison.CurrentCultureIgnoreCase)); } return(PackageId.Equals(otherPackageId, StringComparison.CurrentCultureIgnoreCase)); }
public bool Equals(ToolManifestPackage other) { return(PackageId.Equals(other.PackageId) && EqualityComparer <NuGetVersion> .Default.Equals(Version, other.Version) && CommandNamesEqual(other.CommandNames)); }
public bool Equals(DependencyInfo other) { return(PackageId.Equals(other.PackageId, StringComparison.OrdinalIgnoreCase) && PackageVersion.Equals(other.PackageVersion, StringComparison.OrdinalIgnoreCase)); }
public bool Equals(PackageName other) { return(PackageId.Equals(other.PackageId, StringComparison.OrdinalIgnoreCase) && Version.Equals(other.Version)); }