我正在尝试构建包含18个项目的c# .NET解决方案。突然间,我收到了一个有关一个项目(网页界面)的奇怪错误消息。
错误信息如下:
错误信息如下:
"Error 1839 'Could not load file or assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'"
除一个项目外,所有项目都在.NET Framework 3.5上运行,但我的机器上安装了Framework 4.0。Visual Studio试图从4.0加载文件而不是3.5(我已经尝试将文件移动到3.5,但不起作用)。
有人知道这里出了什么问题或者有什么办法可以解决吗?
问候 Throstur