Title: Fix PSReadLine for OS X · Issue #945 · PowerShell/PowerShell · GitHub
Open Graph Title: Fix PSReadLine for OS X · Issue #945 · PowerShell/PowerShell
X Title: Fix PSReadLine for OS X · Issue #945 · PowerShell/PowerShell
Description: Steps to reproduce On OS X, build PowerShell, then: > Import-Module PSReadline Expected behavior Import successfully. Actual behavior Import-Module : Could not load type 'System.ConsoleColor' from assembly 'mscorlib, Version=4.0.0.0, Cul...
Open Graph Description: Steps to reproduce On OS X, build PowerShell, then: > Import-Module PSReadline Expected behavior Import successfully. Actual behavior Import-Module : Could not load type 'System.ConsoleColor' from ...
X Description: Steps to reproduce On OS X, build PowerShell, then: > Import-Module PSReadline Expected behavior Import successfully. Actual behavior Import-Module : Could not load type 'System.ConsoleColor...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/945
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix PSReadLine for OS X","articleBody":"## Steps to reproduce\n\nOn OS X, build PowerShell, then:\n\n``` powershell\n\u003e Import-Module PSReadline\n```\n## Expected behavior\n\nImport successfully.\n## Actual behavior\n\n``` powershell\nImport-Module : Could not load type 'System.ConsoleColor' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, \nPublicKeyToken=7cec85d7bea7798e'.\nAt line:1 char:1\n+ Import-Module PSReadline\n+ ~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException\n + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand\n```\n## Environment data\n\nPlease fill in the results of the following commands:\n\n``` sh\n$ dotnet --info\n.NET Command Line Tools (1.0.0-rc2-002543)\n\nProduct Information:\n Version: 1.0.0-rc2-002543\n Commit Sha: 38d0c28a1e\n\nRuntime Environment:\n OS Name: Mac OS X\n OS Version: 10.11\n OS Platform: Darwin\n RID: osx.10.11-x64\n\n$ git rev-parse HEAD \u0026\u0026 git status\n1eb205713ef3c9b6b3bdb041549614b4e7721561\nOn branch andschwa/cmdlet-example\nYour branch is up-to-date with 'origin/andschwa/cmdlet-example'.\nChanges not staged for commit:\n (use \"git add \u003cfile\u003e...\" to update what will be committed)\n (use \"git checkout -- \u003cfile\u003e...\" to discard changes in working directory)\n\n modified: ../../.vscode/launch.json\n modified: ../../src/windows-build (new commits)\n\nUntracked files:\n (use \"git add \u003cfile\u003e...\" to include in what will be committed)\n\n ../../src/Microsoft.PowerShell.ConsoleHost/libgtest.a\n ../../src/Microsoft.PowerShell.ConsoleHost/libgtest_main.a\n ../../src/Microsoft.PowerShell.ConsoleHost/libpsl-native.dylib\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\n```\n## Thoughts\n\nI suspect that this is due to `CorePsTypeCatalog.cs` being generated on Linux, and the .NET Core packages on OS X being slightly different. I'll try updating our packages first. If that doesn't work, then perhaps we need two copies of the type catalog (which would meaning generating another set on OS X).\n","author":{"url":"https://github.com/andyleejordan","@type":"Person","name":"andyleejordan"},"datePublished":"2016-05-04T19:37:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/945/PowerShell/issues/945"}
| 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:4504b416-12e4-ba87-7ead-024a3d6913a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0E2:2591F3:45AEE3:5D712E:6A5B6A00 |
| html-safe-nonce | 9ce5f21383cd035ad230f85e1949843355fc64038a230064255ca63d87033b42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUyOjI1OTFGMzo0NUFFRTM6NUQ3MTJFOjZBNUI2QTAwIiwidmlzaXRvcl9pZCI6IjI1ODE3Mjc3MjY5OTU3Mjg4OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27f8e4fcc14fcaf48bd34bbea4f5af7a5ccfc97604ab8d9761ad81dd0e9ed974 |
| hovercard-subject-tag | issue:153096976 |
| 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/945/issue_layout |
| twitter:image | https://opengraph.githubassets.com/683b72bed02a55273753101adfa4f6440598a2b301edb5c19f131293841e5d68/PowerShell/PowerShell/issues/945 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/683b72bed02a55273753101adfa4f6440598a2b301edb5c19f131293841e5d68/PowerShell/PowerShell/issues/945 |
| og:image:alt | Steps to reproduce On OS X, build PowerShell, then: > Import-Module PSReadline Expected behavior Import successfully. Actual behavior Import-Module : Could not load type 'System.ConsoleColor' from ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andyleejordan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width