C# VS代码Omnisharp.MsBuild.Projectmanager无法加载程序集System.Numerics.Vectors 4.1.3.0

C# VS代码Omnisharp.MsBuild.Projectmanager无法加载程序集System.Numerics.Vectors 4.1.3.0,c#,.net,visual-studio-code,csproj,omnisharp,C#,.net,Visual Studio Code,Csproj,Omnisharp,我在打开新创建的blazorwasm项目时遇到问题。Omnisharp将无法正确启动。这是输出: [warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file 'c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj'. c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj(1,1) System.IO.FileLoadExce

我在打开新创建的blazorwasm项目时遇到问题。Omnisharp将无法正确启动。这是输出:

[warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file 'c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj'.
c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj(1,1)
System.IO.FileLoadException: Kan bestand of assembly System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040)
Bestandsnaam: System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
   bij System.SpanHelpers.IndexOf(Char& searchSpace, Char value, Int32 length)
   bij Microsoft.Build.Evaluation.Expander`2.Function`1.ExtractPropertyFunction(String expressionFunction, IElementLocation elementLocation, Object propertyValue, UsedUninitializedProperties usedUnInitializedProperties, IFileSystem fileSystem)
   bij Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertyBody(String propertyBody, Object propertyValue, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
   bij Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypedAndEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
   bij Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
   bij Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(String expression, ExpanderOptions options, IElementLocation elementLocation)
   bij Microsoft.Build.Evaluation.ToolsetReader.ExpandPropertyUnescaped(ToolsetPropertyDefinition property, Expander`2 expander)
   bij Microsoft.Build.Evaluation.ToolsetReader.EvaluateAndSetProperty(ToolsetPropertyDefinition property, PropertyDictionary`1 properties, PropertyDictionary`1 globalProperties, PropertyDictionary`1 initialProperties, Boolean accumulateProperties, String& toolsPath, String& binPath, Expander`2& expander)
   bij Microsoft.Build.Evaluation.ToolsetReader.ReadToolset(ToolsetPropertyDefinition toolsVersion, PropertyDictionary`1 globalProperties, PropertyDictionary`1 initialProperties, Boolean accumulateProperties)
   bij Microsoft.Build.Evaluation.ToolsetReader.ReadEachToolset(Dictionary`2 toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1 initialProperties, Boolean accumulateProperties)
   bij Microsoft.Build.Evaluation.ToolsetReader.ReadToolsets(Dictionary`2 toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1 initialProperties, Boolean accumulateProperties, String& msBuildOverrideTasksPath, String& defaultOverrideToolsVersion)
   bij Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(Dictionary`2 toolsets, ToolsetRegistryReader registryReader, ToolsetConfigurationReader configurationReader, PropertyDictionary`1 environmentProperties, PropertyDictionary`1 globalProperties, ToolsetDefinitionLocations locations)
   bij Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader registryReader, ToolsetConfigurationReader configReader)
   bij Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2 globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, Int32 maxNodeCount, Boolean onlyLogCriticalEvents, Boolean loadProjectsReadOnly)
   bij Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2 globalProperties)
   bij OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:regel 123
   bij OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:regel 72
   bij OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectIdInfo projectIdInfo, ProjectLoader loader, Guid sessionId, IDotNetCliService dotNetCli) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectFile\ProjectFileInfo.cs:regel 113
   bij OmniSharp.MSBuild.ProjectManager.<>c__DisplayClass31_0.<LoadProject>b__0() in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:regel 302
   bij OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func`1 loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:regel 313

WRSCH: registratie van assembly-bindingen is uitgeschakeld.
Als u assembly-bindingsfouten wilt registreren, stelt u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) in op 1.
Opmerking: er is een prestatiestraf gekoppeld aan de registratie van assembly-bindingsfouten.
Als u deze functie wilt uitschakelen, verwijdert u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog].
[warn]:OmniSharp.MSBuild.ProjectManager未能加载项目文件“c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj”。
c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj(1,1)
System.IO.FileLoadException:Kan bestand of assembly System.Numerics.Vectors,Version=4.1.3.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a,属于een van de afhankelijkheden hiervan niet-Ladden。凡德格沃登装配厂的工人尼特·奥弗伦(komt niet overeen)遇到了装配厂的工人。(Uitzondering van HRESULT:0x8013100)
Bestandsnaam:System.Numerics.Vectors,版本=4.1.3.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a
bij System.SpanHelpers.IndexOf(字符和搜索空间,字符值,Int32长度)
bij Microsoft.Build.Evaluation.Expander`2.Function`1.ExtractPropertyFunction(字符串表达式函数、IElementLocation元素位置、对象属性值、UsedUninitializedProperties UsedUninitializedProperties、IFileSystem文件系统)
bij Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertyBody(字符串propertyBody、对象propertyValue、IPropertyProvider`1属性、ExpanderOptions选项、IElementLocation元素位置、UsedUninitializedProperties UsedUninitializedProperties、IFileSystem文件系统)
bij Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypeAndEscape(字符串表达式,IPropertyProvider`1属性,ExpanderOptions选项,IElementLocation元素位置,UsedUninitializedProperties UsedUninitializedProperties,IFileSystem文件系统)
bij Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscape(字符串表达式、IPropertyProvider`1属性、ExpanderOptions选项、IElementLocation元素位置、UsedUninitializedProperties UsedUninitializedProperties、IFileSystem文件系统)
bij Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(字符串表达式、ExpanderOptions选项、IElementLocation元素位置)
bij Microsoft.Build.Evaluation.ToolsetReader.ExpandPropertyUnEscape(ToolsetPropertyDefinition属性,Expander`2 Expander)
bij Microsoft.Build.Evaluation.ToolsetReader.EvaluateAndSetProperty(ToolsetPropertyDefinition属性、PropertyDictionary`1属性、PropertyDictionary`1全局属性、PropertyDictionary`1初始属性、布尔累加属性、字符串和toolsPath、字符串和binPath、Expander`2和Expander)
bij Microsoft.Build.Evaluation.ToolsetReader.ReadToolset(ToolsetPropertyDefinition toolsVersion,PropertyDictionary`1全局属性,PropertyDictionary`1初始属性,布尔累加属性)
bij Microsoft.Build.Evaluation.ToolsetReader.ReadEachToolset(字典'2工具集,属性字典'1全局属性,属性字典'1初始属性,布尔累积属性)
bij Microsoft.Build.Evaluation.ToolsetReader.ReadToolsets(Dictionary`2工具集,PropertyDictionary`1全局属性,PropertyDictionary`1初始属性,布尔累加属性,String&msBuildOverrideTasksPath,String&defaultOverrideToolsVersion)
bij Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(字典'2工具集、工具集注册表读取器注册表读取器、工具集配置读取器配置读取器、属性字典'1环境属性、属性字典'1全局属性、工具集定义位置)
bij Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader registryReader,ToolsetConfigurationReader configReader)
bij Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2全局属性、IEnumerable`1记录器、IEnumerable`1远程记录器、ToolsetDefinitionLocationToolsetDefinitionLocations、Int32 maxNodeCount、Boolean onlyLogCriticalEvents、Boolean loadProjectsReadOnly)
bij Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2全局属性)
D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.EvaluateProjectFileCore(字符串文件路径)中的bij OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(字符串文件路径)
D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.BuildProject(字符串文件路径)中的bij OmniSharp.MSBuild.ProjectLoader.BuildProject(字符串文件路径):regel 72
D:\a\1\s\src\OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(字符串文件路径、projectdinfo projectdinfo、ProjectLoader加载器、Guid sessionId、IDotNetCliService dotNetCli)中的bij OmniSharp.MSBuild.ProjectFileInfo.Load
bij OmniSharp.MSBuild.ProjectManager.c\uuu在D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:regel 302中显示class31\u 0.b\uu 0()
D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.LoadOrReloadProject(字符串projectFilePath,Func`1 loader)中的bij OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(字符串projectFilePath,Func`1 loader)
警告:登记货车总成绑定为uitgeschakeld。
在op 1中,Als u程序集绑定位于wilt registereren,stelt u de registerwaarde[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)。
Opmerking:呃,这是一个关于货车装配绑定登记的问题。
所有的功能都将由注册中心提供[HKLM\Software\Microsoft\Fusion!EnableLog]。
这是csproj文件:

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="3.2.0" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Client\CoreApp.Client.csproj" />
    <ProjectReference Include="..\Shared\CoreApp.Shared.csproj" />
  </ItemGroup>
</Project>

netcoreapp3.1
我不知道我为什么会犯这个错误。因此,我不能在这个项目中使用IntelliSense。 我的一位同事没有这个问题。他可以使用以下命令创建类似的项目:
dotnet新blazorwasm-o CoreApp-托管

在他的个人电脑上,该项目在没有任何OmniSharp警告的情况下正常打开

我不知道为什么我的电脑会出现这个错误

有人有主意吗


提前谢谢

问题在于C#for Visual Studio代码(由OmniSharp提供支持)与代码扩展中包含的MSBuild
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Numerics.Vectors\v4.0_4.1.3.0__b03f5f7f11d50a3a
C:\Program Files\dotnet\sdk\3.1.301\Sdks\Microsoft.NET.Sdk.WindowsDesktop\tools\net472\System.Numerics.Vectors.dll
%USERPROFILE%\.vscode\extensions\ms-dotnettools.csharp-1.22.1\.omnisharp\1.35.3\.msbuild\Current\Bin
      <dependentAssembly>
        <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
      </dependentAssembly>
      <dependentAssembly>