add dotnet list p2ps (#4929)

* add stub for dotnet list p2ps

* apply review feedback

* PR feedback: consistent method modifiers

* apply missed review feedback

* add test coverage and do not treat no p2ps as error

* move private methods to the bottom, rename weird res name
This commit is contained in:
Krzysztof Wicher 2016-12-07 12:56:27 -08:00 committed by Piotr Puszkiewicz
parent d29925a689
commit 79e6126b2a
17 changed files with 448 additions and 3 deletions

View file

@ -131,6 +131,11 @@ namespace Microsoft.DotNet.Tools
return totalNumberOfRemovedReferences;
}
public IEnumerable<ProjectItemElement> GetProjectToProjectReferences()
{
return Project.GetAllItemsWithElementType(ProjectItemElementType);
}
public void ConvertPathsToRelative(ref List<string> references)
{
references = references.Select((r) => PathUtility.GetRelativePath(ProjectDirectory, Path.GetFullPath(r))).ToList();