ProjectContext provides access to Lockfile; Lockfile knows its path
This commit is contained in:
parent
7555793363
commit
0ddf493f1d
4 changed files with 25 additions and 12 deletions
|
@ -15,12 +15,19 @@ namespace Microsoft.DotNet.ProjectModel.Graph
|
|||
public static readonly int CurrentVersion = 2;
|
||||
public static readonly string FileName = "project.lock.json";
|
||||
|
||||
public string LockFilePath { get; }
|
||||
|
||||
public int Version { get; set; }
|
||||
public IList<ProjectFileDependencyGroup> ProjectFileDependencyGroups { get; set; } = new List<ProjectFileDependencyGroup>();
|
||||
public IList<LockFilePackageLibrary> PackageLibraries { get; set; } = new List<LockFilePackageLibrary>();
|
||||
public IList<LockFileProjectLibrary> ProjectLibraries { get; set; } = new List<LockFileProjectLibrary>();
|
||||
public IList<LockFileTarget> Targets { get; set; } = new List<LockFileTarget>();
|
||||
|
||||
public LockFile(string lockFilePath)
|
||||
{
|
||||
LockFilePath = lockFilePath;
|
||||
}
|
||||
|
||||
public bool IsValidForProject(Project project)
|
||||
{
|
||||
string message;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue