diff --git a/src/Interactive/Features/Interactive/Core/NuGetPackageResolverImpl.cs b/src/Interactive/Features/Interactive/Core/NuGetPackageResolverImpl.cs index c87c1d5669acc..805e9c7cc267b 100644 --- a/src/Interactive/Features/Interactive/Core/NuGetPackageResolverImpl.cs +++ b/src/Interactive/Features/Interactive/Core/NuGetPackageResolverImpl.cs @@ -87,7 +87,7 @@ internal override ImmutableArray ResolveNuGetPackage(string packageName, catch (UnauthorizedAccessException) { } - return default(ImmutableArray); + return ImmutableArray.Empty; } /// diff --git a/src/Interactive/HostTest/NuGetPackageResolverTests.cs b/src/Interactive/HostTest/NuGetPackageResolverTests.cs index feca034d1debc..2fc46df9c1578 100644 --- a/src/Interactive/HostTest/NuGetPackageResolverTests.cs +++ b/src/Interactive/HostTest/NuGetPackageResolverTests.cs @@ -126,7 +126,7 @@ public void HandledException() bool restored = false; var resolver = new NuGetPackageResolverImpl(directory.Path, startInfo => { restored = true; throw new IOException(); }); var actualPaths = resolver.ResolveNuGetPackage("A.B.C", "1.2"); - Assert.True(actualPaths.IsDefault); + Assert.True(actualPaths.IsEmpty); Assert.True(restored); } } diff --git a/src/Scripting/Core/Resolvers/RuntimeMetadataReferenceResolver.cs b/src/Scripting/Core/Resolvers/RuntimeMetadataReferenceResolver.cs index 8a7c45c27da66..4edd31612e5d7 100644 --- a/src/Scripting/Core/Resolvers/RuntimeMetadataReferenceResolver.cs +++ b/src/Scripting/Core/Resolvers/RuntimeMetadataReferenceResolver.cs @@ -25,9 +25,7 @@ internal sealed class RuntimeMetadataReferenceResolver : MetadataReferenceResolv internal RuntimeMetadataReferenceResolver( ImmutableArray searchPaths, string baseDirectory) - : this(new RelativePathResolver(searchPaths.NullToEmpty(), baseDirectory), - null, - GacFileResolver.Default) + : this(new RelativePathResolver(searchPaths, baseDirectory), null, GacFileResolver.Default) { }