Replace Uri.UriSchemeHttps by https in PackageListParser

Uri.UriSchemeHttps is not available on CoreCLR
This commit is contained in:
Sergei Vorobev 2016-07-28 17:31:17 -07:00
parent 0dd425da19
commit 0ac0f1962e

View file

@ -347,9 +347,9 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
if (!uri.IsFile) if (!uri.IsFile)
{ {
if (uri.Scheme != Uri.UriSchemeHttps) if (uri.Scheme != "https")
{ {
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Messages.UriSchemeNotSupported, uri.Scheme, Uri.UriSchemeHttps)); throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Messages.UriSchemeNotSupported, uri.Scheme, "https"));
} }
} }