qsharp-compiler
qsharp-compiler copied to clipboard
Syntax highlighting in VS Code fails because of missing NuGet.Frameworks
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:
- Create local env: https://docs.microsoft.com/en-us/azure/quantum/install-command-line-qdk
- Add sample RNG: https://docs.microsoft.com/en-us/azure/quantum/quickstart-microsoft-qc?pivots=platform-ionq
Expected behavior
Syntax highlighting works out of the box after going through tutorial steps.
Screenshots
System information
.Net, VSCode, Microsoft.Quantum.SDK are freshly installed.
- NuGet.Frameworks, Version=6.2.1.7, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- OSX 12.4 (21F79); MacBook Pro (15-inch, 2016) 2,7 GHz Quad-Core Intel Core i7
- Microsoft.NET.Sdk: 6.0.302
- For issues with extensions, the version of the IDE for which the problem occurs
- Microsoft.Quantum.Sdk/0.25.218240
- VSCode Version: 1.69.2, Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a
Additional context
@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).
@bettinaheim Indeed, can't reproduce the issue with the now latest VS Code extension version (0.25.222597). Thanks!