-
Notifications
You must be signed in to change notification settings - Fork 368
/
ISupportNuget.cs
27 lines (18 loc) · 930 Bytes
/
ISupportNuget.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Microsoft.DotNet.Interactive;
public interface ISupportNuget
{
Task<PackageRestoreResult> RestoreAsync();
IEnumerable<string> RestoreSources { get; }
IEnumerable<PackageReference> RequestedPackageReferences { get; }
IEnumerable<ResolvedPackageReference> ResolvedPackageReferences { get; }
PackageReference GetOrAddPackageReference(
string packageName,
string packageVersion = null);
void TryAddRestoreSource(string source);
// Notifies Kernel that package referencing is complete, and provides a list of PackageReferences
void RegisterResolvedPackageReferences(IReadOnlyList<ResolvedPackageReference> packageReferences);
}