microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
684 stars 171 forks source link

Syntax highlighting in VS Code fails because of missing NuGet.Frameworks #1495

Open tony-root opened 2 years ago

tony-root commented 2 years ago

Describe the bug

Syntax highlighting in VS Code fails because of missing NuGet.Frameworks. The project builds and runs successfully from the command line.

[Error - 5:32:36 PM] MSBuild error in /usr/local/share/dotnet/sdk/6.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): The "ProcessFrameworkReferences" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'NuGet.Frameworks, Version=6.2.1.7, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)
File name: 'NuGet.Frameworks, Version=6.2.1.7, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Looks similar to #434 and #86.

Steps to reproduce the behavior:

Expected behavior

Syntax highlighting works out of the box after going through tutorial steps.

Screenshots

Screenshot 2022-07-26 at 17 43 41

System information

.Net, VSCode, Microsoft.Quantum.SDK are freshly installed.

Additional context

bettinaheim commented 2 years ago

@AntonRutkevich Could you please confirm with version of the VS Code extension you are using? We hope this should be fixed with the latest release (0.25.222597).

tony-root commented 2 years ago

@bettinaheim Indeed, can't reproduce the issue with the now latest VS Code extension version (0.25.222597). Thanks!