Skip to content

Use RuntimeInformation.OSDescription for OS version display#94

Merged
Malcolmnixon merged 2 commits intomainfrom
copilot/validate-os-listing-issue
Dec 13, 2025
Merged

Use RuntimeInformation.OSDescription for OS version display#94
Malcolmnixon merged 2 commits intomainfrom
copilot/validate-os-listing-issue

Conversation

Copy link
Contributor

Copilot AI commented Dec 12, 2025

The --validate command displayed OS version as "Unix 6.11.0.1018" instead of a human-readable description like "Ubuntu 22.04.5 LTS".

Changes

  • Replaced Environment.OSVersion.VersionString with RuntimeInformation.OSDescription in Validate.cs
  • Added System.Runtime.InteropServices using statement

Before/After

| OS Version          | Unix 6.11.0.1018                                   |
| OS Version          | Ubuntu 24.04.3 LTS                                 |

RuntimeInformation.OSDescription returns the distribution-specific description on Linux systems rather than just the kernel platform identifier.

Original prompt

This section details on the original issue you should resolve

<issue_title>Validate OS Listing is incorrect</issue_title>
<issue_description>When I run the --validate, I get

| Information     | Value                                    |

| :-------------- | :--------------------------------------- |

| Sha256 Version   | 0.3.0                                    |

| Machine Name    | mybox-u2204                              |

| OS Version      | Unix 6.8.0.85                            |

| DotNet Runtime  | 8.0.20                                   |

| Time Stamp      | 2025-10-14 13:18:25Z                     |

When I would have expected the OS version to read as either "Linux 6.8.0.85", the output of lsb_release -d -s "Ubuntu 22.04.5 LTS", or a combination of the two.
</issue_description>

<agent_instructions>Please research this issue and determine if there's a way to provide a more human-friendly OS Version such as is described in the ticket comments.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incorrect OS version in validation output Use RuntimeInformation.OSDescription for OS version display Dec 12, 2025
Copilot AI requested a review from Malcolmnixon December 12, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate OS Listing is incorrect

2 participants