Remove MSBuildProjectPath property
This commit is contained in:
parent
b7ca1d14bd
commit
8a3ddc9c8a
3 changed files with 12 additions and 31 deletions
|
@ -24,8 +24,6 @@ namespace Microsoft.DotNet.ProjectModel.Server.Models
|
|||
|
||||
public bool Resolved { get; private set; }
|
||||
|
||||
public string MSBuildProjectPath { get; private set; }
|
||||
|
||||
public IEnumerable<DependencyItem> Dependencies { get; private set; }
|
||||
|
||||
public IEnumerable<DiagnosticMessageView> Errors { get; private set; }
|
||||
|
@ -72,13 +70,13 @@ namespace Microsoft.DotNet.ProjectModel.Server.Models
|
|||
Warnings = diagnostics.Where(d => d.Severity == DiagnosticMessageSeverity.Warning)
|
||||
.Select(d => new DiagnosticMessageView(d))
|
||||
};
|
||||
|
||||
|
||||
var msbuildLibrary = library as MSBuildProjectDescription;
|
||||
if (msbuildLibrary != null)
|
||||
{
|
||||
result.MSBuildProjectPath = msbuildLibrary.ProjectLibrary.MSBuildProject;
|
||||
result.Path = msbuildLibrary.MSBuildProjectPath;
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,15 +10,13 @@ namespace Microsoft.DotNet.ProjectModel.Server.Models
|
|||
public FrameworkData Framework { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Path { get; set; }
|
||||
public string MSBuildProjectPath { get; set; }
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
var other = obj as ProjectReferenceDescription;
|
||||
return other != null &&
|
||||
string.Equals(Name, other.Name) &&
|
||||
string.Equals(Path, other.Path) &&
|
||||
string.Equals(MSBuildProjectPath, other.MSBuildProjectPath);
|
||||
string.Equals(Path, other.Path);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
|
@ -47,8 +45,7 @@ namespace Microsoft.DotNet.ProjectModel.Server.Models
|
|||
{
|
||||
Framework = library.Framework.ToPayload(),
|
||||
Name = library.Identity.Name,
|
||||
Path = library.Path,
|
||||
MSBuildProjectPath = ((MSBuildProjectDescription)library).ProjectLibrary.MSBuildProject
|
||||
Path = ((MSBuildProjectDescription)library).MSBuildProjectPath,
|
||||
};
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue