Change Output format to match PR feedback
Don't use Environment.Exit() PR Feedback, Unecessary Usings and Immutable types
This commit is contained in:
parent
dd5c0bb423
commit
3b848c0487
9 changed files with 169 additions and 56 deletions
|
@ -0,0 +1,21 @@
|
|||
using Microsoft.DotNet.ProjectModel;
|
||||
|
||||
namespace ProjectSanity.AnalysisRules.DependencyMismatch
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue