代码之家  ›  专栏  ›  技术社区  ›  Ebrahim Byagowi

vscode q扩展安装问题?

  •  0
  • Ebrahim Byagowi  · 技术社区  · 5 年前

    It was suggested to me to ask this here ,我对跑步没有问题 dotnet restore dotnet 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扩展bug跟踪器上提出这个问题,但是我找不到跟踪器,正如前面提到的,我建议在这里提出这个问题,所以。谢谢!

    1 回复  |  直到 5 年前
        1
  •  1
  •   Mariia Mykhailova    5 年前

    这可能是 this question -Q IntelliSense对高于2.1.402的.NET核心版本不满意,并且看起来您的.NET核心版本是2.2.100。我们正在进行修复;同时,降级到早期版本应该会有所帮助。

    更新:此问题应该已通过QDK 0.4版修复。