Replace Uri.UriSchemeHttps by https in PackageListParser
Uri.UriSchemeHttps is not available on CoreCLR
This commit is contained in:
parent
0dd425da19
commit
0ac0f1962e
|
@ -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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue