Title: XPLAT: RequiredAssemblies must automatically consider lib\framework · Issue #3091 · PowerShell/PowerShell · GitHub
Open Graph Title: XPLAT: RequiredAssemblies must automatically consider lib\framework · Issue #3091 · PowerShell/PowerShell
X Title: XPLAT: RequiredAssemblies must automatically consider lib\framework · Issue #3091 · PowerShell/PowerShell
Description: In order to support cross-platform modules, we need to support dependent assembly packages properly, the way that dotnet build does -- we need to be able to either: make requiredAssemblies like package.json: a list of nuget packages you ...
Open Graph Description: In order to support cross-platform modules, we need to support dependent assembly packages properly, the way that dotnet build does -- we need to be able to either: make requiredAssemblies like pac...
X Description: In order to support cross-platform modules, we need to support dependent assembly packages properly, the way that dotnet build does -- we need to be able to either: make requiredAssemblies like pac...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3091
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"XPLAT: RequiredAssemblies must automatically consider lib\\framework","articleBody":"In order to support cross-platform modules, we need to support dependent assembly packages properly, the way that `dotnet build` does -- we need to be able to either:\r\n\r\n1. make requiredAssemblies like package.json: a list of nuget packages you can load from the .nuget folder (the new compile-time GAC)\r\n2. ship .nupkg files, and refer to the assemblies in requiredAssemblies\r\n3. include the lib/ folder from the nupkg files, and have you PowerShell pick the right one based on platform.\r\n\r\nTo me, it's perfectly obvious that a single machine-wide .nuget folder -- which PowerShell could un-pack from on demand -- would be the ideal solution, requiring the least amount of disk space and work on the part of developers. It would require the NuGet package provider for PowerShell PackageManagement be updated, and significant changes to the core to do the work of unpacking and loading the right assemblies...\r\n\r\nShort of that, a .nuget folder (or \"assemblies\" or whatever) in my PowerShell folder would be a good fall-back option. Same basic story.\r\n\r\nFailing that, the fallback option would be to allow module authors to include the actual nupkg files in their modules. It requires almost all of the same development, and you end up with a lot more copies of the assemblies, but since it doesn't require a working PackageManagement provider (at least, not at runtime), it's somewhat simpler, and self-contained.\r\n\r\nAs a final, worst-case scenario, we could require module authors to actually _unpack_ the nupkg files. That is, we could require each module author to `Install-Package Dependency -Destination MyModuleFolder` and put the `lib` folder from the nuget packages directly within their module. This way PowerShell is only responsible to load the right assembly based on the platform, but we still get cross-platform modules.\r\n\r\n### Backwards compatibility\r\n\r\nNote that for the sake of making modules compatible with PowerShell 5.x and lower, all of these methods require cutting off support at PowerShell 3 (.Net 4) and shipping the .Net 4 assemblies _loose_ in the _root folder of the module_. As long as the manifest just says: RequiredAssemblies = \"Whatever.dll\", legacy `Windows PowerShell` only looks in the GAC or in the module folder.","author":{"url":"https://github.com/Jaykul","@type":"Person","name":"Jaykul"},"datePublished":"2017-02-03T14:55:04Z","url":"https://github.com/PowerShell/PowerShell/issues/3091"}
| 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:632fcb17-9886-e607-805c-370d2c0abd1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E57C:512F6:4A339:6843D:6AFD48D9 |
| html-safe-nonce | 91be9b9cebbf8c0a3b87bf099aed142a49514fdb053b2d851da5649c94246ee8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTdDOjUxMkY2OjRBMzM5OjY4NDNEOjZBRkQ0OEQ5IiwidmlzaXRvcl9pZCI6Ijg4NjE2ODUyMTQ3OTE2ODIyNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2d6d038f9eafcc214df56d8289dd7d9ce7f612c749cab6fa133059bf34130421 |
| hovercard-subject-tag | issue:205178439 |
| 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/3091/issue_layout |
| twitter:image | https://opengraph.githubassets.com/23e6efd59b31401fb0d201239d5f24a928c4f587350cd73cfadf330a7d9c16db/PowerShell/PowerShell/issues/3091 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/23e6efd59b31401fb0d201239d5f24a928c4f587350cd73cfadf330a7d9c16db/PowerShell/PowerShell/issues/3091 |
| og:image:alt | In order to support cross-platform modules, we need to support dependent assembly packages properly, the way that dotnet build does -- we need to be able to either: make requiredAssemblies like pac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Jaykul |
| 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