PowerShell / PowerShell/PowerShellEditorServices

2.0.0 preview Module loading error (pb loading netstandard, Version=2.0.0.0)

Aperta
#864 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Area-Build & Release Issue-Bug
Lingua principale
C#
Stelle
767
Fork
266
Merge medio
3g 16h
PR unite (30g)
1

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia leggendo LoaderException.txt e i log diagnostici in EditorServices-reportlogs.zip, quindi riproduci l’importazione non riuscita di PowerShellEditorServices da VSCode preview 2.0.0. Traccia il problema di caricamento dell’assembly netstandard; il lavoro è completato quando il modulo viene importato e VSCode si avvia senza gli errori Add-Type segnalati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, powershell
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.