Ejemplo n.º 1
0
        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())}");
        }
Ejemplo n.º 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var versionSpec = (VersionRange)value;

            return(versionSpec == null ? null : ManifestUtility.ReplaceMetadataWithToken(versionSpec.ToShortString()));
        }
Ejemplo n.º 3
0
        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()));
 }