Delphi 2007 – when you lost your Borland.*.Targets file during a Windows upgrade
Posted by jpluimers on 2018/08/09
When upgrading Windows, it will create a fully new %windir% for you.
Any files an application installed files in them will be gone, and appear in a %HomeDrive%\Windows.old
If you’ve deleted that directory because you thought all your applications worked, or the Windows 10 upgrade automagically deleted the Windows.old directory by itself after some grace period, then you might be in trouble.
One of those applications is Delphi 2007. I wrote about a different issue on x64 Windows on that product before: Delphi on Windows x64: solution when project compiles fine under IDE, but not using MSBuild.
Basically it puts these files in %windir%\Microsoft.NET\Framework\v2.0.50727:
Borland.Common.TargetsBorland.Cpp.TargetsBorland.Delphi.TargetsBorland.Group.Targets
Those will be gone if you deleted the Windows.old directory.
If you are lucky, the files are also in this directory to copy back to %windir%\Microsoft.NET\Framework\v2.0.50727 and %windir%\Microsoft.NET\Framework64\v2.0.50727:
C:\ProgramData\{B59CE2E6-B15A-4F23-BD0E-72BF2ADDC3C7}\core\7EFD2DA3\6C948720
And if you’re not, you can find them here too: https://gist.github.com/anonymous/ab801cd925e5e634518fd5592eb2a46e
–jeroen
via:
- [WayBack] Delphi 2007 x Windows 10 – Error on opening project – Stack Overflow
- [WayBack] Delphi 2007 on Windows 10 – Download Borland.xxx.Targets files – Stack Overflow
https://gist.github.com/anonymous/ab801cd925e5e634518fd5592eb2a46e






Leave a Comment