Title: PackageManagment binaries should be installed under \Modules\PackageManagement\ folder · Issue #2347 · PowerShell/PowerShell · GitHub
Open Graph Title: PackageManagment binaries should be installed under \Modules\PackageManagement\ folder · Issue #2347 · PowerShell/PowerShell
X Title: PackageManagment binaries should be installed under \Modules\PackageManagement\ folder · Issue #2347 · PowerShell/PowerShell
Description: Problem It is observed that PowerShell core is loading assembles from its installed folder first (e.g. PowerShell\6.0.0.10) if exists, even if ipmo with a full path. For most cases, this behavior seems to be ok. However for the PackageMa...
Open Graph Description: Problem It is observed that PowerShell core is loading assembles from its installed folder first (e.g. PowerShell\6.0.0.10) if exists, even if ipmo with a full path. For most cases, this behavior s...
X Description: Problem It is observed that PowerShell core is loading assembles from its installed folder first (e.g. PowerShell\6.0.0.10) if exists, even if ipmo with a full path. For most cases, this behavior s...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PackageManagment binaries should be installed under \\Modules\\PackageManagement\\ folder ","articleBody":"# Problem\n\nIt is observed that PowerShell core is loading assembles from its installed folder first (e.g. PowerShell\\6.0.0.10) if exists, even if ipmo with a full path. For most cases, this behavior seems to be ok. However for the PackageManagement, we need to allow users to update the PackageManagement via install-module. The updated binaries will be installed under PowerShell\\6.0.0.10\\Modules\\PackageManagement. But these updated assemblies won't get loaded because PowerShell loads the built-in PackageManagement assemblies first. \n# Proposed Solution\n\nWhen packaging the next alpha release, PackageManagment binaries should be installed under PowerShell\\6.0.0.10\\Modules\\PackageManagement\\ folder instead of root PowerShell\\6.0.0.10\\ folder.\n\nFYI:\nOneGet assemblies including .dlls/.ni.dlls:\n\nMicrosoft.PackageManagement.ArchiverProviders\nMicrosoft.PackageManagement.CoreProviders\nMicrosoft.PackageManagement\nMicrosoft.PackageManagement.MetaProvider.PowerShell\nMicrosoft.PackageManagement.NuGetProvider\nMicrosoft.PowerShell.PackageManagement\n## Steps to reproduce\n1. Install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.10/PowerShell_6.0.0.10-alpha.10-win10-x64.msi\n2. copy any binary , In my case, Microsoft.PackageManagement.dll, to C:\\Program Files\\PowerShell\\6.0.0.10\\Modules\\PackageManagement\n or any folder such as C:\\Program Files\\PowerShell\\6.0.0.10\\Temp. \n3. ipmo \"C:\\Program Files\\PowerShell\\6.0.0.10\\Modules\\PackageManagement\\Microsoft.PackageManagement.dll\"\n4. You will see the C:\\Program Files\\PowerShell\\6.0.0.10\\Microsoft.PackageManagement.dll is imported.\n## Expected behavior\n\nThe assembly under C:\\Program Files\\PowerShell\\6.0.0.10\\Modules\\PackageManagement\\ should be loaded.\n## Actual behavior\n\nAny assembly if exists under C:\\Program Files\\PowerShell\\6.0.0.10\\, will get loaded first.\n## Environment data\n\n``` powershell\nPS C:\\Program Files\\PowerShell\\6.0.0.10> $PSVersionTable\n\nName Value\n---- -----\nPSVersion 6.0.0-alpha\nWSManStackVersion 3.0\nGitCommitId v6.0.0-alpha.10\nCLRVersion\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nBuildVersion 3.0.0.0\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nPSEdition Core\n\n\n```\n","author":{"url":"https://github.com/jianyunt","@type":"Person","name":"jianyunt"},"datePublished":"2016-09-22T23:49:18Z","url":"https://github.com/PowerShell/PowerShell/issues/2347"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a70e404c-ee4a-2a0b-e5b8-d190a72d9138 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3CA:3756EB:2655970:355D1C5:6AFD4300 |
| html-safe-nonce | 3a97134bfcc21fbfca84b87271329aa549feb09f88611e71b27da637d7ee38cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0NBOjM3NTZFQjoyNjU1OTcwOjM1NUQxQzU6NkFGRDQzMDAiLCJ2aXNpdG9yX2lkIjoiMzY1MDU1NDQ1OTE1MjI3MDA4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8405b73ef2469281ddb1cf222258e9f4fe9bd658321aea2e3f4816e00012a3e |
| hovercard-subject-tag | issue:178749233 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7296b2578a000ae10a267ed19717a099ce656ac19b9ad38499327160374b1cf/PowerShell/PowerShell/issues/2347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7296b2578a000ae10a267ed19717a099ce656ac19b9ad38499327160374b1cf/PowerShell/PowerShell/issues/2347 |
| og:image:alt | Problem It is observed that PowerShell core is loading assembles from its installed folder first (e.g. PowerShell\6.0.0.10) if exists, even if ipmo with a full path. For most cases, this behavior s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jianyunt |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width