mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Due to the use of unsupported APIs, we must remove the LocalAccounts module until a better solution is found. (#4302)
This commit is contained in:
@@ -2961,7 +2961,6 @@ function Start-CrossGen {
|
||||
$psCoreAssemblyList += @(
|
||||
"Microsoft.WSMan.Management.dll",
|
||||
"Microsoft.WSMan.Runtime.dll",
|
||||
"Microsoft.PowerShell.LocalAccounts.dll",
|
||||
"Microsoft.PowerShell.Commands.Diagnostics.dll",
|
||||
"Microsoft.Management.Infrastructure.CimCmdlets.dll"
|
||||
)
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
<ProjectReference Include="..\Microsoft.PowerShell.SDK\Microsoft.PowerShell.SDK.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.PowerShell.PSReadLine\Microsoft.PowerShell.PSReadLine.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.PowerShell.Commands.Diagnostics\Microsoft.PowerShell.Commands.Diagnostics.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.PowerShell.LocalAccounts\Microsoft.PowerShell.LocalAccounts.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.Management.Infrastructure.CimCmdlets\Microsoft.Management.Infrastructure.CimCmdlets.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.WSMan.Management\Microsoft.WSMan.Management.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -48,6 +48,8 @@ try
|
||||
# this Describe makes sure we binplace all the files, like psd1, psm1, ps1xml and load usable modules from them
|
||||
Describe 'Modules for the package' {
|
||||
Context '$env:DEVPATH Modules loading' {
|
||||
<#
|
||||
removed due to #4272
|
||||
It 'loads Microsoft.PowerShell.LocalAccounts' {
|
||||
try
|
||||
{
|
||||
@@ -59,6 +61,7 @@ try
|
||||
Remove-Module -ErrorAction SilentlyContinue Microsoft.PowerShell.LocalAccounts
|
||||
}
|
||||
}
|
||||
#>
|
||||
|
||||
It 'loads Microsoft.PowerShell.Archive' {
|
||||
try
|
||||
|
||||
+5
@@ -2,6 +2,11 @@
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation, 2015
|
||||
|
||||
# Module removed due to #4272
|
||||
# disabling tests
|
||||
|
||||
return
|
||||
|
||||
function RemoveTestGroups
|
||||
{
|
||||
param([string] $basename)
|
||||
|
||||
+5
@@ -2,6 +2,11 @@
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation, 2015
|
||||
|
||||
# Module removed due to #4272
|
||||
# disabling tests
|
||||
|
||||
return
|
||||
|
||||
function IsWin10OrHigher
|
||||
{
|
||||
$version = [system.environment]::osversion.version
|
||||
|
||||
+5
@@ -2,6 +2,11 @@
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation, 2015
|
||||
|
||||
# Module removed due to #4272
|
||||
# disabling tests
|
||||
|
||||
return
|
||||
|
||||
Set-Variable dateInFuture -option Constant -value "12/12/2036 09:00"
|
||||
Set-Variable dateInPast -option Constant -value "12/12/2010 09:00"
|
||||
Set-Variable dateInvalid -option Constant -value "12/12/2016 25:00"
|
||||
|
||||
@@ -12,7 +12,7 @@ $powershellCoreModules = @(
|
||||
"Microsoft.PowerShell.Core"
|
||||
"Microsoft.PowerShell.Diagnostics"
|
||||
"Microsoft.PowerShell.Management"
|
||||
"Microsoft.PowerShell.LocalAccounts"
|
||||
# "Microsoft.PowerShell.LocalAccounts" removed due to #4274
|
||||
"Microsoft.PowerShell.Security"
|
||||
"Microsoft.PowerShell.Utility"
|
||||
"Microsoft.WsMan.Management"
|
||||
|
||||
@@ -232,7 +232,6 @@ function Expand-ZipArchive([string] $Path, [string] $DestinationPath)
|
||||
Microsoft.PowerShell.PackageManagement 59.77 62.04 Branch:59.77 Sequence:62.04
|
||||
Microsoft.PackageManagement 41.73 44.47 Branch:41.73 Sequence:44.47
|
||||
Microsoft.Management.Infrastructure.CimCmdlets 13.20 17.01 Branch:13.20 Sequence:17.01
|
||||
Microsoft.PowerShell.LocalAccounts 73.15 84.32 Branch:73.15 Sequence:84.32
|
||||
Microsoft.PackageManagement.MetaProvider.PowerShell 54.79 57.90 Branch:54.79 Sequence:57.90
|
||||
Microsoft.PackageManagement.NuGetProvider 62.36 65.37 Branch:62.36 Sequence:65.37
|
||||
Microsoft.PackageManagement.CoreProviders 7.08 7.96 Branch:7.08 Sequence:7.96
|
||||
@@ -285,7 +284,6 @@ function Get-CodeCoverage
|
||||
Microsoft.PowerShell.ConsoleHost 36.53 0 38.40 0
|
||||
Microsoft.PowerShell.CoreCLR.AssemblyLoadContext 53.66 0 95.31 0
|
||||
Microsoft.PowerShell.CoreCLR.Eventing 28.70 0 36.23 0
|
||||
Microsoft.PowerShell.LocalAccounts 73.15 0 84.32 0
|
||||
Microsoft.PowerShell.PackageManagement 59.77 0 62.04 0
|
||||
Microsoft.PowerShell.PSReadLine 7.12 0 9.94 0
|
||||
Microsoft.PowerShell.Security 15.17 0 18.16 0
|
||||
@@ -312,7 +310,6 @@ function Get-CodeCoverage
|
||||
Microsoft.PowerShell.ConsoleHost 36.53 0 38.40 0
|
||||
Microsoft.PowerShell.CoreCLR.AssemblyLoadContext 53.66 0 95.31 0
|
||||
Microsoft.PowerShell.CoreCLR.Eventing 28.70 0 36.23 0
|
||||
Microsoft.PowerShell.LocalAccounts 73.15 0 84.32 0
|
||||
Microsoft.PowerShell.PackageManagement 59.77 0 62.04 0
|
||||
Microsoft.PowerShell.PSReadLine 7.12 0 9.94 0
|
||||
Microsoft.PowerShell.Security 15.17 0 18.16 0
|
||||
|
||||
Reference in New Issue
Block a user