let RID detection do its thing

also:
* fix up pjvalidate to handle versionless deps
* fix up package-command-test
This commit is contained in:
Andrew Stanton-Nurse 2016-01-12 08:46:33 -08:00
parent 4344af3c1b
commit 845f2c56e6
11 changed files with 50 additions and 45 deletions

View file

@ -1,4 +1,5 @@
using Microsoft.DotNet.ProjectModel;
using System;
using Microsoft.DotNet.ProjectModel;
namespace MultiProjectValidator.AnalysisRules.DependencyMismatch
{
@ -9,7 +10,7 @@ namespace MultiProjectValidator.AnalysisRules.DependencyMismatch
return new DependencyInfo
{
ProjectPath = context.ProjectFile.ProjectFilePath,
Version = library.Identity.Version.ToString(),
Version = library.Identity.Version?.ToString() ?? String.Empty,
Name = library.Identity.Name
};
}