public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value == null) { return(string.Empty); } var dependency = (PackageDependency)value; return($"{dependency.Id} {ManifestUtility.ReplaceMetadataWithToken(dependency.VersionRange.PrettyPrint())}"); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var versionSpec = (VersionRange)value; return(versionSpec == null ? null : ManifestUtility.ReplaceMetadataWithToken(versionSpec.ToShortString())); }
public object?Convert(object value, Type targetType, object parameter, _CultureInfo culture) { var version = value as NuGetVersion; return(ManifestUtility.ReplaceMetadataWithToken(version?.ToFullString())); }
public override string ToString() { return(Id + "." + ManifestUtility.ReplaceMetadataWithToken(Version.ToFullString())); }