Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

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

Open
tony-root opened this issue Jul 26, 2022 · 2 comments
Open
Labels
area: editor Extensions for Visual Studio and Visual Studio Code bug Something isn't working

Comments

@tony-root
Copy link

tony-root commented Jul 26, 2022

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.

  • 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

@tony-root tony-root added bug Something isn't working needs triage An initial review by a maintainer is needed labels Jul 26, 2022
@bettinaheim
Copy link
Contributor

@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 bettinaheim added area: editor Extensions for Visual Studio and Visual Studio Code and removed needs triage An initial review by a maintainer is needed labels Jul 28, 2022
@tony-root
Copy link
Author

tony-root commented Jul 30, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: editor Extensions for Visual Studio and Visual Studio Code bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants