René's URL Explorer Experiment


Title: Add-Type fails sporadically with "An item with the same key has already been added" · Issue #19470 · PowerShell/PowerShell · GitHub

Open Graph Title: Add-Type fails sporadically with "An item with the same key has already been added" · Issue #19470 · PowerShell/PowerShell

X Title: Add-Type fails sporadically with "An item with the same key has already been added" · Issue #19470 · PowerShell/PowerShell

Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...

Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19470

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add-Type fails sporadically with \"An item with the same key has already been added\"","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nThis is elusive but *Add-Type* fails sporadically with *\"An item with the same key has been already added\"*  when auto-importing module on daily build of PS 7.3 (Preview.3 and Preview.4) and PS 7.2.4 as well.\r\n\r\nIt happens usually on freshly started PowerShell console session.\r\n\r\n**What is strange is that importing the failing module again but implicitly with *-Force* switch succeeds (please see the actual behavior)**\r\n\r\nThis is not unique to specific module. In the attached example the *Add-Type* fails in official release of *PowerShellGet* module (2.2.5) - lines 517 and 796 as well as in my module *KBSystemTools* line 136:\r\n\r\nPowerShellGet (file - PSModule.psm1):\r\n~line 517\r\n```powershell\r\n    try {\r\n        $AddType_prams = @{\r\n            TypeDefinition = $InternalWebProxySource\r\n            Language       = 'CSharp'\r\n            ErrorAction    = 'SilentlyContinue'\r\n        }\r\n        if (-not $script:IsCoreCLR -or $script:IsNanoServer) {\r\n            $AddType_prams['ReferencedAssemblies'] = $RequiredAssembliesForInternalWebProxy\r\n        }\r\n\u003e\u003e\u003eEXCEPTION\u003e\u003e\u003e        Add-Type @AddType_prams\r\n    }\r\n    catch {\r\n        Write-Warning -Message \"InternalWebProxy: $_\"\r\n    }\r\n```\r\n~line 796\r\n```powershell\r\n    try {\r\n        $AddType_prams = @{\r\n            TypeDefinition = $Win32HelpersSource\r\n            Language       = 'CSharp'\r\n            ErrorAction    = 'SilentlyContinue'\r\n        }\r\n        if ((-not $script:IsCoreCLR -or $script:IsNanoServer) -and $RequiredAssembliesForWin32Helpers) {\r\n            $AddType_prams['ReferencedAssemblies'] = $RequiredAssembliesForWin32Helpers\r\n        }\r\n\u003e\u003e\u003eEXCEPTION\u003e\u003e\u003e        Add-Type @AddType_prams\r\n    }\r\n    catch {\r\n        Write-Warning -Message \"Win32Helpers: $_\"\r\n    }\r\n}\r\n```\r\nKBSystemTools (file - KBSystemTools.psm1):\r\n~ line 136\r\n```powershell\r\n\t$Local_ReferencedAssemblies = if ($PSVersionTable.PSVersion.Major -lt 6) {\r\n\t\tAdd-Type -Path ([IO.Path]::Combine($PSScriptRoot, 'Assemblies', 'net20', 'Cassia.dll')) -ErrorAction Stop\r\n\t\tAdd-Type -Path ([IO.Path]::Combine($PSScriptRoot, 'Assemblies', 'net472', 'NuGet.Versioning.dll')) -ErrorAction Stop\r\n\t\tAdd-Type -Path ([IO.Path]::Combine($PSScriptRoot, 'Assemblies', 'net45', 'Figgle.dll')) -ErrorAction Stop\r\n\t} else {\r\n\t\tAdd-Type -Path ([IO.Path]::Combine($PSScriptRoot, 'Assemblies', 'netstandard20', 'Cassia.dll')) -ErrorAction Stop\r\n\t\tAdd-Type -Path ([IO.Path]::Combine($PSScriptRoot, 'Assemblies', 'netstandard20', 'NuGet.Versioning.dll')) -ErrorAction Stop\r\n\t\tAdd-Type -Path ([IO.Path]::Combine($PSScriptRoot, 'Assemblies', 'netstandard13', 'Figgle.dll')) -ErrorAction Stop\r\n\t\t[String[]][IO.Directory]::EnumerateFiles([IO.Path]::Combine($PSHOME, 'ref'), '*.dll', [IO.SearchOption]::TopDirectoryOnly)\r\n\t}\r\n\u003e\u003e\u003eEXCEPTION\u003e\u003e\u003e\tAdd-Type -TypeDefinition $Local_KBSystemToolsType -ReferencedAssemblies $Local_ReferencedAssemblies -ErrorAction Stop\r\n```\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\nAdd-Type should not fail.\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\n[7.2][Bukem@ATLANTIS] \u003e Update-KBModule -Verbose\r\nWARNING: InternalWebProxy: An item with the same key has already been added. Key: 1151434954\r\nWARNING: Win32Helpers: An item with the same key has already been added. Key: -620943648\r\nUpdate-KBModule: The term 'Update-KBModule' is not recognized as a name of a cmdlet, function, script file, or executable program.\r\nCheck the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\n[7.2][Bukem@ATLANTIS] \u003e Import-Module KBSystemTools -Force -Verbose\r\nVERBOSE: Loading module from path 'D:\\USERS\\BUKEM\\Documents\\PowerShell\\Modules\\KBSystemTools\\KBSystemTools.psd1'.\r\nVERBOSE: Removing the imported \"Compare-KBCmdletParameter\" function.\r\nVERBOSE: Removing the imported \"Connect-KBShadowSession\" function.\r\nVERBOSE: Removing the imported \"Find-KBModulePopular\" function.\r\nVERBOSE: Removing the imported \"Find-KBModuleUpdate\" function.\r\nVERBOSE: Removing the imported \"Get-KBMcAfeeEpoPattern\" function.\r\nVERBOSE: Removing the imported \"Get-KBPublicIP\" function.\r\nVERBOSE: Removing the imported \"Get-KBSymantecMailSecurityPattern\" function.\r\nVERBOSE: Removing the imported \"Get-KBWindowsUpdate\" function.\r\nVERBOSE: Removing the imported \"Install-KBWindowsUpdate\" function.\r\nVERBOSE: Removing the imported \"Send-KBMouseLeftClick\" function.\r\nVERBOSE: Removing the imported \"Set-KBPSEConfiguration\" function.\r\nVERBOSE: Removing the imported \"Test-KBWebAccess\" function.\r\nVERBOSE: Removing the imported \"Uninstall-KBOutdatedModule\" function.\r\nVERBOSE: Removing the imported \"Update-KBHelp\" function.\r\nVERBOSE: Removing the imported \"Update-KBModule\" function.\r\nVERBOSE: Removing the imported \"Write-KBAsciiBanner\" function.\r\nVERBOSE: Loading 'FormatsToProcess' from path 'D:\\USERS\\BUKEM\\Documents\\PowerShell\\Modules\\KBSystemTools\\Data\\FormatData\\KBModulePopular.Format.ps1xml'.\r\nVERBOSE: Loading 'FormatsToProcess' from path 'D:\\USERS\\BUKEM\\Documents\\PowerShell\\Modules\\KBSystemTools\\Data\\FormatData\\KBModuleUpdate.Format.ps1xml'.\r\nVERBOSE: Loading module from path 'D:\\USERS\\BUKEM\\Documents\\PowerShell\\Modules\\KBSystemTools\\KBSystemTools.psm1'.\r\nVERBOSE: Importing function 'Compare-KBCmdletParameter'.\r\nVERBOSE: Importing function 'Connect-KBShadowSession'.\r\nVERBOSE: Importing function 'Find-KBModulePopular'.\r\nVERBOSE: Importing function 'Find-KBModuleUpdate'.\r\nVERBOSE: Importing function 'Get-KBMcAfeeEpoPattern'.\r\nVERBOSE: Importing function 'Get-KBPublicIP'.\r\nVERBOSE: Importing function 'Get-KBSymantecMailSecurityPattern'.\r\nVERBOSE: Importing function 'Get-KBWindowsUpdate'.\r\nVERBOSE: Importing function 'Install-KBWindowsUpdate'.\r\nVERBOSE: Importing function 'Send-KBMouseLeftClick'.\r\nVERBOSE: Importing function 'Set-KBPSEConfiguration'.\r\nVERBOSE: Importing function 'Test-KBWebAccess'.\r\nVERBOSE: Importing function 'Uninstall-KBOutdatedModule'.\r\nVERBOSE: Importing function 'Update-KBHelp'.\r\nVERBOSE: Importing function 'Update-KBModule'.\r\nVERBOSE: Importing function 'Write-KBAsciiBanner'.\r\n[7.2][Bukem@ATLANTIS] \u003e Update-KBModule -Verbose\r\nVERBOSE: Local module: CompletionPredictor v0.1.0\r\nVERBOSE: Local module: Microsoft.PowerShell.ConsoleGuiTools v0.6.2\r\nVERBOSE: Local module: Microsoft.PowerShell.Crescendo v1.0.0\r\nVERBOSE: Local module: ScriptBlockDisassembler v1.1.0\r\nVERBOSE: Local module: WindowsCompatibility v1.0.0\r\nVERBOSE: Cached PSGallery module: [2022-05-26 18:33:10] Microsoft.PowerShell.Crescendo v1.0.0\r\nVERBOSE: Cached PSGallery module: [2022-05-26 18:33:11] WindowsCompatibility v1.0.0\r\nVERBOSE: Cached PSGallery module: [2022-05-26 18:33:11] Microsoft.PowerShell.ConsoleGuiTools v0.6.2\r\nVERBOSE: Cached PSGallery module: [2022-05-26 18:33:10] CompletionPredictor v0.1.0\r\nVERBOSE: Cached PSGallery module: [2022-05-26 18:33:09] ScriptBlockDisassembler v1.1.0\r\nVERBOSE: Local module is up-to-date: CompletionPredictor\r\nVERBOSE: Local module is up-to-date: Microsoft.PowerShell.ConsoleGuiTools\r\nVERBOSE: Local module is up-to-date: Microsoft.PowerShell.Crescendo\r\nVERBOSE: Local module is up-to-date: ScriptBlockDisassembler\r\nVERBOSE: Local module is up-to-date: WindowsCompatibility\r\n```\r\n\r\n\r\n### Error details\r\n\r\n```console\r\nPSMessageDetails      : \r\nException             : System.Management.Automation.CommandNotFoundException: The term 'Update-KBModule' is not recognized as a name of a cmdlet, function, script file, or executable program.\r\n                        Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\n                           at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)\r\n                           at System.Management.Automation.CommandDiscovery.TryModuleAutoDiscovery(String commandName, ExecutionContext context, String originalCommandName, CommandOrigin commandOrigin, SearchResolutionOptions searchResolutionOptions, CommandTypes commandTypes, Exception\u0026 lastError)\r\n                           at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)\r\n                           at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)\r\n                           at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)\r\n                           at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)\r\n                           at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)\r\n                           at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\nTargetObject          : Update-KBModule\r\nCategoryInfo          : ObjectNotFound: (Update-KBModule:String) [], CommandNotFoundException\r\nFullyQualifiedErrorId : CommandNotFoundException\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo : {}\r\n\r\nPSMessageDetails      : \r\nException             : System.ArgumentException: An item with the same key has already been added. Key: -1537659534\r\n                           at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\r\n                           at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.DoEmitAndLoadAssembly(Compilation compilation, EmitOptions emitOptions)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.CompileToAssembly(List`1 syntaxTrees, CompilationOptions compilationOptions, EmitOptions emitOptions)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.SourceCodeProcessing()\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.EndProcessing()\r\n                           at System.Management.Automation.CommandProcessorBase.Complete()\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [Add-Type], ArgumentException\r\nFullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.AddTypeCommand\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at \u003cScriptBlock\u003e, D:\\USERS\\BUKEM\\Documents\\PowerShell\\Modules\\KBSystemTools\\KBSystemTools.psm1: line 136\r\n                        at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo : {}\r\n\r\nPSMessageDetails      : \r\nException             : System.ArgumentException: An item with the same key has already been added. Key: -620943648\r\n                           at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\r\n                           at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.DoEmitAndLoadAssembly(Compilation compilation, EmitOptions emitOptions)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.CompileToAssembly(List`1 syntaxTrees, CompilationOptions compilationOptions, EmitOptions emitOptions)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.SourceCodeProcessing()\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.EndProcessing()\r\n                           at System.Management.Automation.CommandProcessorBase.Complete()\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [Add-Type], ArgumentException\r\nFullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.AddTypeCommand\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at \u003cScriptBlock\u003e, C:\\program files\\powershell\\7\\Modules\\PowerShellGet\\PSModule.psm1: line 796\r\n                        at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo : {}\r\n\r\nPSMessageDetails      : \r\nException             : System.ArgumentException: An item with the same key has already been added. Key: 1151434954\r\n                           at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\r\n                           at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.DoEmitAndLoadAssembly(Compilation compilation, EmitOptions emitOptions)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.CompileToAssembly(List`1 syntaxTrees, CompilationOptions compilationOptions, EmitOptions emitOptions)\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.SourceCodeProcessing()\r\n                           at Microsoft.PowerShell.Commands.AddTypeCommand.EndProcessing()\r\n                           at System.Management.Automation.CommandProcessorBase.Complete()\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [Add-Type], ArgumentException\r\nFullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.AddTypeCommand\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at \u003cScriptBlock\u003e, C:\\program files\\powershell\\7\\Modules\\PowerShellGet\\PSModule.psm1: line 517\r\n                        at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo : {}\r\n```\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.2.4\r\nPSEdition                      Core\r\nGitCommitId                    7.2.4\r\nOS                             Microsoft Windows 10.0.19044\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.3.0-preview.3\r\nPSEdition                      Core\r\nGitCommitId                    7.3.0-preview.3-139-g0882737efb830d8072dc0c2830b50a74ab2166df\r\nOS                             Microsoft Windows 10.0.19044\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/kborowinski","@type":"Person","name":"kborowinski"},"datePublished":"2022-05-26T17:42:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/19470/PowerShell/issues/19470"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a8786e61-2d10-ca95-3d5a-b360be9ac78b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC9CA:135D4D:39DAE3:4DCB46:6A553B88
html-safe-nonce3d24dcb01d9f29c5383362775202c7bbc93a817b45919e11356491a780cbf939
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUNBOjEzNUQ0RDozOURBRTM6NERDQjQ2OjZBNTUzQjg4IiwidmlzaXRvcl9pZCI6IjczODE4ODAxNjE2NjE0MzQ3NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac36e1829ec522e2115a837b02c689eae9a249a6ef1c5510a395e5b094fd00ae28
hovercard-subject-tagissue:1659386746
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/19470/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f4ffa5b5f4ec85ad8ba9a9b90d671352d56e58fbf9072349656941e6f04b07e1/PowerShell/PowerShell/issues/19470
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4ffa5b5f4ec85ad8ba9a9b90d671352d56e58fbf9072349656941e6f04b07e1/PowerShell/PowerShell/issues/19470
og:image:altPrerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekborowinski
hostnamegithub.com
expected-hostnamegithub.com
Nonefbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release811f50b757204c6a1b4da0ea780075b3e1cc9e57
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/19470#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F19470
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F19470
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/19470
Reloadhttps://github.com/PowerShell/PowerShell/issues/19470
Reloadhttps://github.com/PowerShell/PowerShell/issues/19470
Please reload this pagehttps://github.com/PowerShell/PowerShell/issues/19470
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 54.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 287 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
#19471https://github.com/PowerShell/PowerShell/pull/19471
Add-Type fails sporadically with "An item with the same key has already been added"https://github.com/PowerShell/PowerShell/issues/19470#top
#19471https://github.com/PowerShell/PowerShell/pull/19471
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
https://github.com/kborowinski
kborowinskihttps://github.com/kborowinski
on May 26, 2022https://github.com/PowerShell/PowerShell/issues/19470#issue-1659386746
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.