/// <summary> /// Points to an Icon, either Embedded Icon or IconUrl /// </summary> private Uri GetIconUri() { string embeddedIcon = _nuspec.GetIcon(); if (embeddedIcon == null) { return(Convert(_nuspec.GetIconUrl())); } var baseUri = Convert(_package.Path); UriBuilder builder = new UriBuilder(baseUri) { Fragment = embeddedIcon }; // get the special icon url return(builder.Uri); }