VSCode Q# 扩展安装问题?

VSCode Q# extension installation issue?

It was suggested to me to ask this here,我在刚创建的项目文件夹上 运行 dotnet restoredotnet run 没有问题,但 VSCode Q# 扩展无法工作像这样,它没有给出任何好的指示出了什么问题。

[Error - 10:35:54 PM] MSBuild error in /opt/dotnet/sdk/2.2.100/NuGet.targets(123,7): The "RestoreForceEvaluate" parameter is not supported by the "RestoreTask" task. Verify the parameter exists on the task, and it is a settable public instance property.
[Error - 10:35:54 PM] MSBuild error in /opt/dotnet/sdk/2.2.100/NuGet.targets(114,5): The "RestoreTask" task could not be initialized with its input parameters. 
[Error - 10:35:54 PM] Failed to restore project '.../Bell/Bell.csproj'.
[Error - 10:35:54 PM] MSBuild error in /opt/dotnet/sdk/2.2.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(208,5): The "ResolvePackageAssets" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'NuGet.Frameworks, Version=4.9.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621)
File name: 'NuGet.Frameworks, Version=4.9.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheWriter..ctor(ResolvePackageAssets task, Stream stream)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader.CreateReaderFromMemory(ResolvePackageAssets task, Byte[] settingsHash)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader..ctor(ResolvePackageAssets task)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups()
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore()
   at Microsoft.NET.Build.Tasks.TaskBase.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)


[Error - 10:35:54 PM] Failed to resolve assembly references for project

我相信我应该在 VSCode Q# 扩展错误跟踪器上提出这个问题,但我找不到跟踪器,正如最初提到的,我建议在这里提问,所以。谢谢!

这可能是 的另一种表现 - Q# IntelliSense 对 2.1.402 以上的 .NET Core 版本不满意,看起来你的 .NET Core 版本是 2.2.100。我们正在努力修复;同时,降级到早期版本应该会有帮助。

更新:QDK 0.4 版应该已经解决了这个问题。