Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Export-NUnitXml/Export-NUnitXml.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@
$OS = Get-CimInstance -ClassName Win32_OperatingSystem
$Platform = $OS.Caption
$OSVersion = $OS.Version
$ClrVersion = $PSVersionTable.CLRVersion.ToString()
$ClrVersion = 'Unknown'
$CurrentCulture = (Get-Culture).Name
$UICulture = (Get-UICulture).Name

# This has been deprecated with PS Core and is only kept for compatbility
# See https://github.com/PowerShell/PowerShell/issues/1395
if ($PSVersionTable.CLRVersion) {
$ClrVersion = $PSVersionTable.CLRVersion.ToString()
}

Switch ($ScriptAnalyzerResult) {
$Null { $TestResult = 'Success'; $TestSuccess = 'True'; Break}
Expand Down