Repository navigation
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productOS-macOS
Milestone
Description
Steps to reproduce
On OS X, build PowerShell, then:
> Import-Module PSReadlineExpected behavior
Import successfully.
Actual behavior
Import-Module : Could not load type 'System.ConsoleColor' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=7cec85d7bea7798e'.
At line:1 char:1
+ Import-Module PSReadline
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommandEnvironment data
Please fill in the results of the following commands:
$ dotnet --info
.NET Command Line Tools (1.0.0-rc2-002543)
Product Information:
Version: 1.0.0-rc2-002543
Commit Sha: 38d0c28a1e
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
$ git rev-parse HEAD && git status
1eb205713ef3c9b6b3bdb041549614b4e7721561
On branch andschwa/cmdlet-example
Your branch is up-to-date with 'origin/andschwa/cmdlet-example'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: ../../.vscode/launch.json
modified: ../../src/windows-build (new commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
../../src/Microsoft.PowerShell.ConsoleHost/libgtest.a
../../src/Microsoft.PowerShell.ConsoleHost/libgtest_main.a
../../src/Microsoft.PowerShell.ConsoleHost/libpsl-native.dylib
no changes added to commit (use "git add" and/or "git commit -a")
Thoughts
I 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).
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productOS-macOS
Activity