当我尝试构建应用程序时,我得到:
Error 1 Unexpected error reading metadata from file 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' -- 'Index not found.' NHMDLive.Models
我无法弄清楚问题可能是什么。我检查了mscorlib.dll并做了校验和,但没有损坏。必须是别的东西。
答案 0 :(得分:2)
您无法使用vs 2008为dotnet版本4编码。
您将要么升级到VS 2010,要么使用3.5或更少版本的程序集