System.IO.FileNotFoundException发生 HResult=0x80070002 Message=无法加载文件或程序集'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'或它的某一个依赖项。系统找不到指定的文件。
Source= StackTrace: at AlexiConsole.Program.Main(String[] args) in c:\Users\myself\documents\visual studio 2017\Projects\Alexi\AlexiConsole\Program.cs:line 21
内部异常1: FileNotFoundException: 无法加载文件或程序集'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'或它的某一个依赖项。系统找不到指定的文件。
我不知道为什么。我已经在两个项目的app.config中有绑定重定向,将版本0.0.0.0-4.1.0.0重定向到4.1.0.0。
两个项目都针对.NET 4.7。