Hello Bob,
If the solution(projects) you are using in VS 2017 was migrated from VS 2010, you can refer to this document Project migration and upgrade reference for Visual Studio(2017) and check if your solution meets the requirements to migrate.
Besides, if you try to directly open your solution (in VS 2010) by using VS 2017(back up your solution before performing this action), will the errors appear? Also please try following steps to troubleshoot.
- Please try to re-add or reinstall the necessary “references” from VS 2017, for example right-click
References
orDependencies
node inSolution Explorer
and chooseAdd Reference
. - If you use some NuGet packages, you can try to reinstall NuGet Packages by using command like this
Update-Package <package_name> -ProjectName MyProject -reinstall
inPackage Manager Console
(Tools > NuGet Package Manager > Package Manager Console). - Please try to reset VS settings by opening Developer Command Prompt for VS 2017 > type
devenv /ResetSettings
> pressEnter
to reset VS settings. - Please close all Visual Studio instances and try to rename (or delete) the hidden .vs, bin and obj folders in your solution folder, after that rename (or delete) every subfolders named
ComponentModelCache
under this directoryC:\Users\[user name]\AppData\Local\Microsoft\VisualStudio\15.0_XXXXXX
. Build your solution again. - If possible, you can try to use VS 2017 on another machine then build to see if the errors are disappeared.
- Please try to repair VS 2017 and update VS 2017 to the latest version(15.9.26).
- Please try to create a new solution in VS 2017 and then copy(migrate, add) the contents and resources from old solution to new solution. After that build again.
In addition, could you share some more information with me, such as build logs, a reproduced simple sample. This will be useful for me to check further.
Best Regards,
Tianyu