In the past when I have seen this error it was caused by the difference in the project GUIDs - maybe you solution originates from a very old Kentico version or the GUIDs were changed in the past for some reason. When you open the .sln file in a text editor, the default "CMS" project should have the GUIDs like this:
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "CMS", "CMS\", "{420F4FED-2F28-4BE5-8CEA-9A6B9A57558B}"
the "LIB" project:
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lib", "Lib", "{60BF950D-9BE2-47E7-B905-3694E1BA33DC}"
So, the options you have right now are:
- adjust your .sln file and use the GUIDs from the default SLN file or,
- install a fresh Kentico 10 instance and use the default .sln file or,
- follow the manual upgrading steps and copy over the new files.