Fixed a few issues with lock file check

- Normalize version for comparison
- Change dnu restore to dotnet restore in
error message
This commit is contained in:
David Fowler 2015-11-07 02:24:53 -08:00
parent 8ebc1bf9f5
commit b334c8f28c
2 changed files with 4 additions and 4 deletions

View file

@ -98,7 +98,7 @@ namespace Microsoft.Extensions.ProjectModel.Graph
if (range.MinVersion == range.MaxVersion &&
(range.Float == null || range.Float.FloatBehavior == NuGetVersionFloatBehavior.None))
{
return range.MinVersion.ToString();
return range.MinVersion.ToNormalizedString();
}
var sb = new StringBuilder();
sb.Append(">= ");
@ -106,7 +106,7 @@ namespace Microsoft.Extensions.ProjectModel.Graph
{
case null:
case NuGetVersionFloatBehavior.None:
sb.Append(range.MinVersion);
sb.Append(range.MinVersion.ToNormalizedString());
break;
case NuGetVersionFloatBehavior.Prerelease:
// Work around nuget bug: https://github.com/NuGet/Home/issues/1598