2015-12-16 02:09:08 +00:00
|
|
|
|
using Microsoft.DotNet.ProjectModel;
|
|
|
|
|
|
2016-01-08 01:10:45 +00:00
|
|
|
|
namespace MultiProjectValidator.AnalysisRules.DependencyMismatch
|
2015-12-16 02:09:08 +00:00
|
|
|
|
{
|
|
|
|
|
internal class DependencyInfo
|
|
|
|
|
{
|
|
|
|
|
public static DependencyInfo Create(ProjectContext context, LibraryDescription library)
|
|
|
|
|
{
|
|
|
|
|
return new DependencyInfo
|
|
|
|
|
{
|
|
|
|
|
ProjectPath = context.ProjectFile.ProjectFilePath,
|
|
|
|
|
Version = library.Identity.Version.ToString(),
|
|
|
|
|
Name = library.Identity.Name
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ProjectPath { get; private set; }
|
|
|
|
|
public string Version { get; private set; }
|
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|