Skip to content

Commit

Permalink
Avoid using obsolete SourceRepositoryProvider constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Oct 31, 2019
1 parent 7039aee commit 013b657
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ public async Task<ImmutableArray<MetadataReference>> ResolveAsync(string? langua
private async Task<ImmutableArray<MetadataReference>> ResolveCoreAsync(string language, CancellationToken cancellationToken)
{
var settings = Settings.LoadDefaultSettings(root: null);
#pragma warning disable CS0618 // Type or member is obsolete
var sourceRepositoryProvider = new SourceRepositoryProvider(settings, Repository.Provider.GetCoreV3());
#pragma warning restore CS0618 // Type or member is obsolete
var sourceRepositoryProvider = new SourceRepositoryProvider(new PackageSourceProvider(settings), Repository.Provider.GetCoreV3());
var targetFramework = NuGetFramework.ParseFolder(TargetFramework);
var logger = NullLogger.Instance;

Expand Down

0 comments on commit 013b657

Please sign in to comment.