PowerShell / PowerShell/PowerShellEditorServices
2.0.0 preview Module loading error (pb loading netstandard, Version=2.0.0.0)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 767
- Forks
- 266
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
Description
When trying to launch the PowerShell preview 2.0.0 in VSCode, I've got an error that I was able to pin down to the importation of the PowerShellEditorServices module. When trying to load the module by itself, there is three Add-Type errors. When trying those Add-Type manually, I've got the same errors that say Unable to load one or more of the requested types. I checked the LoaderException objects, and it seems to boil down to that message:
{System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
Files attached
EditorServices-reportlogs.zip contains:
- vscode-powershell.log
- Start-EditorServices-EditorServices.log (log level: diagnostic)
- Import-Module.log (manual module importation, verbose)
- LoaderException.txt (random loader exception among loads of identical ones)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading LoaderException.txt and the diagnostic logs in EditorServices-reportlogs.zip, then reproduce the failed PowerShellEditorServices import from VSCode preview 2.0.0. Trace the netstandard assembly-loading failure; done means the module imports and VSCode launches without the reported Add-Type errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100