Delphi Version Numbers

CodeGear Delphi 2007
This version numbers are required for compilation directives. I revised my own components package from Delphi 7 to install in Delphi 2007, 2009.
ProductProduct versionOther namesInternal versionPackage versionCompilerVersion constRTLVersion constDefined Symbol
Delphi 13 Florence37 3729037.037.0VER370
Delphi 12 Athens29BDS 233629036.036.0VER360
Delphi 11 Alexandria28BDS 223528035.035.0VER350
Delphi 10.4 Sydney27BDS 213427034.034.0VER340
Delphi 10.3 Rio26BDS 203326033.033.0VER330
Delphi 10.2 Tokyo25BDS 193225032.032.0VER320
Delphi 10.1 Berlin24BDS 183124031.031.0VER310
Delphi 10 Seattle23BDS 173023030.030.0VER300
Delphi XE822BDS 162922029.029.0VER290
Delphi XE721BDS 152821028.028.0VER280
Delphi XE620BDS 142720027.027.0VER270
Delphi XE519BDS 122619026.026.0VER260
Delphi XE418BDS 112518025.025.0VER250
Delphi XE317BDS 102417024.024.0VER240
Delphi XE2 Pulsar16BDS 923160 & 161 23.023.0VER230
Delphi XE Fulcrum15BDS 82215022.022.0VER220
Delphi 2010 Weaver14BDS 72114021.021.0VER210
Delphi 2009 Tiburon12BDS 62012020.020.0VER200
Delphi 2007 .NET11BDS 51911019.019.0VER190
Delphi 2007 Win3211BDS 518.511018.518.0VER180 & VER185
Delphi 2006 DeXter10BDS 41810018.018.0VER180
Delphi 2005 Diamondback9BDS 3179017.017.0VER170
Delphi 8 Octane (.NET only)8BDS 2168016.016.0VER160
C++ Builder 77?1570?15.0??VER150 & BCB
Delphi 77157015.015.0VER150
C++ Builder 66146014.0?VER140 & BCB
Delphi 66146014.014.0VER140
C++ Builder 5513N/aN/aN/aVER130 & BCB
Delphi 5513N/a13(*)N/aVER130
C++ Builder 4412.5N/aN/aN/aVER125 & BCB
Delphi 4412N/a12(*)N/aVER120
C++ Builder 3311N/aN/aN/aVER110 & BCB
Delphi 3310N/a10(*)N/aVER100
C++ Builder 1N/a9.3N/aN/aN/aVER93 & BCB
Delphi 229N/a9(*)N/aVER90
Delphi 118N/a8(*)N/aVER80
Borland Pascal 7.0N/aN/a707(*)N/aVER70
Turbo Pascal 6.0N/aN/a606(*)N/aVER60
Turbo Pascal 5.5N/aN/a555.5(*)N/aVER55
Turbo Pascal 5.0N/aN/a505(*)N/aVER50
Turbo Pascal 4.0N/aN/a404(*)N/aVER40
Turbo Pascal for Windows 1.5N/aN/a15N/aN/aVER15
Turbo Pascal for Windows 1.0N/aN/a10N/aN/aVER10

Use RtlVersion when the code depends on VCL or RTL features and CompilerVersion when it depends on compiler/language features.

(*) These versions did not have a CompilerVersion constant, it was introduced with Delphi 6.

Delphi XE2 packages are version 160 but five FireMonkey packages at XE2 Update 2 (fmi161.bplfmx161.bplfmxase161.bplfmxdae161.bpl and fmxobj161.bpl) are version 161.

Examples:

if CompilerVersion = 20 then sCompilerName := 'Delphi 2009'; in conditional compiler expressions:
{$if CompilerVersion > 18} // Delphi 2007 or later {$ifend}

Former Source: delphiDabbler.com. My reference is wider and better.

CodeGear Delphi 2007 for Win32: F2039 Could not create output file

CodeGear Delphi 2007
While installing RX Components Library the next
"[Pascal Fatal Error] rxctl.dpk(111): F2039 Could not create output file 'C:\Program Files (x86)\CodeGear\RAD Studio\5.0\RX\packages\Delphi2007\rxctl.drc'"
message appeared.
The problem solved by giving "Full access" to "Users" to the needed
"C:\Program Files (x86)\CodeGear\RAD Studio\5.0\RX\"
directory.

The similar error appeared in Embarcadero Delphi 11 Alexandria. The solution is also the same.

CodeGear Delphi 2007 for Win32: F2039 Could not create output file
Embarcadero, RAD Studio Reference, gives the similar recommendation:
F2039 Could not create output file '%s' (Delphi)

Borland.Delphi.Targets was not found

Applied to Delphi 2007/2009, Windows 8.1/10/11
Borland.Delphi.Targets was not found
Error
Unable to load project ... .dproj The imported project "C:\Windows\ Microsoft.NET \F…\Borland.Delphi.Targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
... .dproj
There are a lot of topics in the Internet containing the error message
The imported project "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Borland. Delphi.Targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
RAD keeps the copies of Targets files in the
"C:\ProgramData\{B59CE2E6-B15A-4F23-BD0E-72BF2ADDC3C7}\core\7EFD2DA3\6C948720\"
directory, and they can be copied to
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\"
("C:\Windows\Microsoft.NET\Framework64\v2.0.50727\") /
sometimes to
"C:\Windows\Microsoft.NET\Framework\v4.0.30319"
("C:\Windows\Microsoft.NET\Framework64\v4.0.30319")
if absent.

But error can still exist!
The matter to give "Full control" to "ALL APPLICATION PACKAGES" ("Все пакеты приложений") for the "C:\Windows\Microsoft.NET\" directory.


Note:
"ALL APPLICATION PACKAGES" ("Все пакеты приложений"), appeared with WIN 8.
SID - ALL_APP_PACKAGES
The All Application Packages group is a well-known group with a predefined SID. The group must have specific access to certain locations of the registry and file system for Microsoft Store Apps to function properly.

There is a more clumsy ways to fix this error.
Find the line <Import Project="$(MSBuildBinPath)\Borland.Delphi.Targets" /> in project file .dproj. This line is located about at the end of file.
Replace the value "$(MSBuildBinPath)\Borland.Delphi.Targets" with full path to file, for instance: "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets"
Note:
Directory "C:\Windows\Microsoft.NET\Framework\v2.0.50727"
stands for .NET Framework, Version 2.0, Visual Studio Version 2005
Directory "C:\Windows\Microsoft.NET\Framework\v4.0.30319"
stands for .NET Framework, Version 4.0/4.5.2, Visual Studio Version 2010/2012
or launch the Delphi as Adminnistrator. As a more permanent solution, change the shortcut's properties to always run as administrator.