diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e5b84a..881c3f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Fixed * `prism install` fails if `Get-PSRepository` hasn't been run before it. +* Prism commands are very slow in Windows PowerShell on Windows 10, Server 2012R2, and Server 2019 due to some overzealous logging. # 0.5.0 diff --git a/Prism/Functions/Invoke-Prism.ps1 b/Prism/Functions/Invoke-Prism.ps1 index a1654fd..6cb8b33 100644 --- a/Prism/Functions/Invoke-Prism.ps1 +++ b/Prism/Functions/Invoke-Prism.ps1 @@ -51,8 +51,6 @@ function Invoke-Prism $pkgMgmtPrefs = Get-PackageManagementPreference - Write-Debug 'AVAILABLE MODULES' - Get-Module -ListAvailable | Format-Table -AutoSize | Out-String | Write-Debug Import-Module -Name 'PackageManagement' ` -MinimumVersion '1.3.2' ` -MaximumVersion '1.4.7' ` @@ -65,11 +63,6 @@ function Invoke-Prism -Global ` -ErrorAction Stop ` @pkgMgmtPrefs - Write-Debug 'IMPORTED MODULES' - Get-Module | Format-Table -AutoSize | Out-String | Write-Debug - Write-Debug 'AVAILABLE MODULES' - Write-Debug "PSModulePath $($env:PSModulePath)" - Get-Module -ListAvailable | Format-Table -AutoSize | Out-String | Write-Debug } process diff --git a/appveyor.yml b/appveyor.yml index f11a514..fdf18d4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,7 +14,7 @@ environment: matrix: - job_name: PowerShell 7.2 on Windows job_group: pwsh - appveyor_build_worker_image: Visual Studio 2022 + appveyor_build_worker_image: Visual Studio 2022 # Windows Server 2019 - job_name: PowerShell 7.1 on macOS job_group: pwsh @@ -22,15 +22,15 @@ environment: - job_name: Windows PowerShell 5.1/.NET 4.6.2 job_group: ps - appveyor_build_worker_image: Visual Studio 2013 + appveyor_build_worker_image: Visual Studio 2013 # Windows Server 2012R2 - job_name: Windows PowerShell 5.1/.NET 4.8 job_group: ps - appveyor_build_worker_image: Visual Studio 2019 + appveyor_build_worker_image: Visual Studio 2019 # Windows Server 2019 - job_name: PowerShell 6.2 on Windows job_group: pwsh - appveyor_build_worker_image: Visual Studio 2015 + appveyor_build_worker_image: Visual Studio 2015 # Windows Server 2012R2 - job_name: PowerShell 7.2 on Ubuntu job_group: pwsh @@ -38,7 +38,7 @@ environment: - job_name: PowerShell 7.1 on Windows job_group: pwsh - appveyor_build_worker_image: Visual Studio 2019 + appveyor_build_worker_image: Visual Studio 2019 # Windows Server 2019 artifacts: