Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was 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

@tony-root

Description

@tony-root

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: editorExtensions for Visual Studio and Visual Studio CodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions