微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法加载文件或程序集“System.Threading.Tasks.Dataflow,版本=4.6.3.0

如何解决无法加载文件或程序集“System.Threading.Tasks.Dataflow,版本=4.6.3.0

我使用的是 Unity + vs 代码 + 窗口 10。

有一天,OmniSharp 无故停止工作。任何帮助表示赞赏! 我试过重新安装 vscode、.net core sdk 和 c# 扩展。没有运气

[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\CYF\Unity\BehavIoUrTreeAI\bhtree\Assembly-CSharp-Editor.csproj'.
c:\CYF\Unity\BehavIoUrTreeAI\bhtree\Assembly-CSharp-Editor.csproj(0,0)
System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Dataflow,Version=4.6.3.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Threading.Tasks.Dataflow,PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.Build.BackEnd.Logging.LoggingService.ProcessLoggingEvent(Object buildEvent,Boolean allowThrottling)
   at Microsoft.Build.BackEnd.Logging.LoggingService.LogProjectEvaluationStarted(BuildEventContext projectEvaluationEventContext,String projectFile)
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate()
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data,ProjectRootElement root,ProjectLoadSettings loadSettings,Int32 maxNodeCount,PropertyDictionary`1 environmentProperties,ILoggingService loggingService,IItemFactory`2 itemFactory,IToolsetProvider toolsetProvider,ProjectRootElementCacheBase projectRootElementCache,BuildEventContext buildEventContext,ISdkResolverService sdkResolverService,Int32 submissionId,EvaluationContext evaluationContext,Boolean interactive)
   at Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation,EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation,EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary`2 globalProperties,String toolsversion,String subToolsetVersion,EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project..ctor(String projectFile,IDictionary`2 globalProperties,ProjectCollection projectCollection,EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName,String toolsversion)
   at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath,IReadOnlyDictionary`2 projectConfigurationsInSolution) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 157
   at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath,IReadOnlyDictionary`2 configurationsInSolution) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 75
   at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath,ProjectIdInfo projectIdInfo,ProjectLoader loader,Guid sessionId,DotNetInfo dotNetInfo) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectFile\ProjectFileInfo.cs:line 116
   at OmniSharp.MSBuild.ProjectManager.<>c__displayClass31_0.<LoadProject>b__0() in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:line 304
   at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath,Func`1 loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:line 315

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging,set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off,remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

解决方法

我也遇到了这个问题,我认为这是一个 Omnisharp 错误。我刚刚更新到 Omnisharp 版本 1.37.8-beta.2,它看起来包含针对此问题的错误修复,并且为我解决了该问题。

,

我今天遇到了完全相同的错误...

就我而言,虽然我目前只使用 VS Code,但我仍然安装了 Visual Studio 2017 Community Edition 和 Visual Studio Build Tools 2017。

在将我的 VS Code 升级到 1.54.0(今天发布)并将 Visual Studio Community Edition 和 Visual Studio Build Tools 升级到 2019 版本后,该错误消失了。不再有 Omnisharp 错误,不再有问题通知警报,Intellisense 再次运行。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。