【发布时间】:2014-11-10 18:49:07
【问题描述】:
我开始在 Visual Studio 2012 Professional 中处理一个项目,该项目是用 Visual Studio 2010 SP1 编写的。解决方案中有几个项目。其中一个是一个问题,
当我将其设置为启动项目时,我收到消息:"There were build errors. Would you like to continue and run the last successful build?",但错误列表中没有错误(其他项目如果设置为启动项目则构建成功)。在VS2010中没有问题。
我看到的唯一问题是:在Properties -> Settings 中,我得到一个错误:
"Could not resolve mscorlib for target framework '. NETFramework, Version = v3.5'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted."
【问题讨论】:
-
那台机器上是否安装了 .NET 3.5?我想VS2012可能默认安装4.0。但如果它是一个明确针对 3.5 的遗留项目,则还需要安装该版本。
-
4600 次浏览,3 个问题点赞... 呸!普通人!!
标签: c# visual-studio-2012 build