protected PackageDescriptor given_spec(string id, string version, string authors, string description, string title = null, string owners = null, string projectUrl = null, string licenseUrl = null, string requireLicenseAcceptance = null, string tags = null) { var spec = String.Format(template, id, version, authors, description, title, owners, projectUrl, licenseUrl, requireLicenseAcceptance, tags); var doc = new XmlDocument(); doc.LoadXml(spec); return(Descriptor = NuSpecConverter.ConvertSpecificationToDescriptor(doc)); }
string version(string s) { return(NuSpecConverter.ConvertNuGetVersionRange(s).Select(x => x.ToString()).Join(" and ")); }