When you upgrade a project to 4.0, you may need to do the following to make it compile. The reasos is because the reference has gone through some structure changes.
System.Core.dll 3.0 - to remove (System.Core has merged into System in .4.0)
WindowsFormsIntegration - upgrade to 4.0 (old does not work with 4.0)
WindowsBase - upgrade to 4.0 (old does not work with 4.0)
System.Windows.Forms - Add to 4.0
If your project has xaml files, you will need to have the
System.Xaml.dll - added to build with new files.
PresentationCore.dll - upgrade
PresentationFramework.dll - upgrade
UIAutomationProvider - upgrade
本文档提供了将项目从早期版本升级到.NET 4.0所需的步骤指南。包括删除或更新不再兼容的引用,如System.Core.dll,并添加新的引用如System.Windows.Forms。对于包含XAML文件的项目,还需要加入System.Xaml.dll。
468

被折叠的 条评论
为什么被折叠?



