-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy pathIProject.cs
More file actions
58 lines (40 loc) · 1.68 KB
/
Copy pathIProject.cs
File metadata and controls
58 lines (40 loc) · 1.68 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
namespace Microsoft.DotNet.UpgradeAssistant
{
public interface IProject
{
FileInfo FileInfo { get; }
string Id { get; }
Language Language { get; }
Project GetRoslynProject();
IEnumerable<IProject> ProjectReferences { get; }
public IEnumerable<string> AllProjectReferences { get; }
IEnumerable<Reference> FrameworkReferences { get; }
INuGetReferences NuGetReferences { get; }
/// <summary>
/// Gets all the PackageReference items in the project including evaluated items.
/// </summary>
IEnumerable<NuGetReference> PackageReferences { get; }
/// <summary>
/// Gets Evaluated Project Properties.
/// </summary>
IEnumerable<string> ProjectTypes { get; }
IEnumerable<Reference> References { get; }
IReadOnlyCollection<TargetFrameworkMoniker> TargetFrameworks { get; }
ValueTask<ProjectComponents> GetComponentsAsync(CancellationToken token);
ProjectOutputType OutputType { get; }
IEnumerable<string> FindFiles(ProjectItemMatcher matcher, ProjectItemType? itemType = null);
IProjectFile GetFile();
/// <summary>
/// Provides a list of Unevaluated Project properties.
/// </summary>
/// <returns>Returns Unevaluated Project Properties.</returns>
IProjectPropertyElements GetProjectPropertyElements();
}
}