Skip to content

Commit 470906b

Browse files
committed
Try more things
1 parent aba9e40 commit 470906b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

PSCompatibilityCollector/PSCompatibilityCollector.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Add the relevant binary module
55
if ($PSVersionTable.PSVersion.Major -ge 6)
66
{
7-
Import-Module ([System.IO.Path]::Combine($PSScriptRoot, 'netstandard2.0', 'Microsoft.PowerShell.CrossCompatibility.dll'))
7+
Import-Module ([System.IO.Path]::Combine($PSScriptRoot, 'netstandard2.0', 'Microsoft.PowerShell.CrossCompatibility.dll')) -Force
88
}
99
else
1010
{
11-
Import-Module ([System.IO.Path]::Combine($PSScriptRoot, 'net452', 'Microsoft.PowerShell.CrossCompatibility.dll'))
11+
Import-Module ([System.IO.Path]::Combine($PSScriptRoot, 'net452', 'Microsoft.PowerShell.CrossCompatibility.dll')) -Force
1212
}

PSCompatibilityCollector/Tests/Cmdlet.Tests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
Write-Verbose -Verbose ("Modules:`n" + (Get-Module -ListAvailable | Out-String))
55
Write-Verbose -Verbose ("Exported cmdlets from PSCompatibilityCollector:`n" + (Get-Module -ListAvailable PSCompatibilityCollector | % { $_.ExportedCmdlets.Keys } | Out-String))
66

7+
Import-Module PSCompatibilityCollector -ErrorAction Stop
8+
79
Describe "PSCompatiblityCollector cmdlets" {
810
BeforeAll {
911
$compatModulePath = (Get-Module -ListAvailable 'PSCompatibilityCollector')[0].Path

0 commit comments

Comments
 (0)