We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc3837 commit 03ee190Copy full SHA for 03ee190
1 file changed
mdoc/Mono.Documentation/frameworksbootstrapper.cs
@@ -48,9 +48,11 @@ public override void Run (IEnumerable<string> args)
48
string dllPath = Path.Combine(sourcePath, fileNameWithoutExtension + ".dll");
49
if (File.Exists(dllPath))
50
{
51
- var version = FileVersionInfo.GetVersionInfo(dllPath).FileVersion;
52
- if (!string.IsNullOrEmpty(version))
+ var fileVersionInfo = FileVersionInfo.GetVersionInfo(dllPath);
+
53
+ if (fileVersionInfo != null)
54
55
+ var version = $"{fileVersionInfo.FileMajorPart}.{fileVersionInfo.FileMinorPart}.{fileVersionInfo.FileBuildPart}.{fileVersionInfo.FilePrivatePart}";
56
assemblyVersionMapping.Add(Path.GetFileName(xmlPath), new Version(version));
57
}
58
0 commit comments