Just updated from Windows 8.1 to Windows 10 and now when I try to open any project on Delphi 2007, I get his error :
Unable to load project xxxxx The imported project "c:\Windows\Microsft.NET...\Borland.Delphi.Targets" was not found. Confirm that the path declaration is correct, and that file exists on disk
Any hints to fix it ?
You need to copy some files in your old Windows folder to the new one. After that projects open again.
The needed files are these :
c:\windows\Microsoft.NET\Framework\v2.0.50727\Borland.Common.Targets
c:\windows\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets
c:\windows\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets
c:\windows\Microsoft.NET\Framework\v2.0.50727\Borland.Group.Targets
Just copy them from the older windows folder to the new one.
I suspect that you've done an in-place upgrade of Windows. That is probably not compatible with your Delphi installation. Specifically the msbuild target files that you identified in your answer.
But there may well be more issues than this. I recommend performing a repair install of your Delphi. I believe that will bring the Delphi installation into line with the new OS. If you are at all paranoid about in-place upgrades and repair installs then you might contemplate a full Delphi re-installation.
来源:https://stackoverflow.com/questions/31745712/delphi-2007-x-windows-10-error-on-opening-project