Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 5c5e52e

Browse files
committed
Fix manifest verification throwing an exception for invalid version numbers.
Fixes #37.
1 parent 7500b87 commit 5c5e52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet/upack/Command.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ internal static string ValidateManifest(UniversalPackageMetadata info)
285285
}
286286
}
287287

288-
if (info.Version == null)
288+
if (UniversalPackageVersion.TryParse(info["version"] as string ?? string.Empty) == null)
289289
{
290290
return "missing or invalid version.";
291291
}

0 commit comments

Comments
 (0)