Esempio n. 1
0
        internal static string ToString(NuGetVersion version, NuGetVersionConversionFlags flags)
        {
            var versionString = ((flags & NuGetVersionConversionFlags.IncludeBuildMetadata) == 0)
                ? version.ToNormalizedString()
                : version.ToFullString();

            return(((flags & NuGetVersionConversionFlags.OriginalCasing) == 0)
                ? versionString.ToLowerInvariant()
                : versionString);
        }
 public NuGetVersionListConverter(NuGetVersionConversionFlags flags)
 {
     _flags = flags;
 }