WPF项目,换了一台电脑,报错,找不到原因,未知的生成错误“Could not find assembly 'System.Core, Version=4.0.0.0,

WPF项目,换了一台电脑,报错,找不到原因,未知的生成错误“Could not find assembly 'System.Core, Version=4.0.0.0,

问题描述:

未知的生成错误“Could not find assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly.” C:\Program Files\dotnet\sdk\5.0.402\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets

img

打开项目时,输出显示:
C:\Users\www\AppData\Local\Microsoft\VisualStudio\16.0_31110bcd\Designer\ShadowCache\osrcf3kn.osa\rp3jqlen.i4y\System.Xml.Linq.dll
Could not load file or assembly 'System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
C:\Users\www\AppData\Local\Microsoft\VisualStudio\16.0_31110bcd\Designer\ShadowCache\0r1vcsje.jwv\ref2abla.mwb\CefSharp.BrowserSubprocess.Core.dll
Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.dll' or one of its dependencies. 找不到指定的模块。
C:\Users\www\AppData\Local\Microsoft\VisualStudio\16.0_31110bcd\Designer\ShadowCache\mxks1yrw.uka\bb5csd3v.a2n\System.Runtime.Serialization.dll
Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
C:\Users\www\AppData\Local\Microsoft\VisualStudio\16.0_31110bcd\Designer\ShadowCache\bsonkubu.xax\kwyh4itn.udq\System.Xml.dll
Could not load file or assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
C:\Users\www\AppData\Local\Microsoft\VisualStudio\16.0_31110bcd\Designer\ShadowCache\atcnlcfl.r2n\jmljee1k.uwn\CefSharp.Core.Runtime.dll
Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. 找不到指定的模块。