build a delphi 7 project with MSBuild - delphi

I try to use MSBuild to build a delphi project, but the problem that in the version 7 of delphi, there is no file with the extension .dproj
is there any solution allow me to build it using MSBuild ?

Delphi 7 did not produce the XML project files used by MS-Build. In order to use MS-Build to build Delphi 7 projects, you'd have to generate your own .dproj file in the proper format.
It also did not come with the Borland assemblies necessary for use with MS-Build (which were placed in the %WINDIR%\assembly\GAC_MSIL folder in more recent Delphi installations), so you'd have to create your own schema that calls the Delphi compiler (both code and resource).

Related

Dialogs.res, Controls.res not found

Both files were not found during the compile process on one dedicated system with Delphi 10.4 and Windows 11.
The complete project has been compiled w/o problems on others systems using Delphi 11 and Delphi 10.3 and Delphi 10.4.
Following the solution from here (https://www.youtube.com/watch?v=l3_UVhBbP1s), adding the lib path (e.g. C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\win64\release) to the project will not work for us, as we use different Delphi compiler versions inside our team.
Any more general solution for this problem?
Remark : using different compiler's worked before. This error appeared just a few days ago, we don't know what is really changed

Delphi 7 Error. Project not opening in RAD Studio XE5

I have a project in Borland Delphi 7. When I open the .DPR project file in RAD STUDIO XE5 it prompts an error "Framework not registered: VCL" and project not open.
I want to know what this error means. Although project is compiling and running in Borland Delphi 7.If you Google this error then there is not a single page for this error. Please help me. Thanks.
ERROR SCREENSHOT:
http://s9.postimg.org/9p6hyqodb/error.png
With the introduction of FireMonkey, a project needs to know whether it is using VCL or FMX as its underlying framework. When you upgrade your D7 project to XE5, the migration is not inserting that reference into the new DPROJ.
Unfortunately, upgrading older projects to newer IDEs has always been a flawed process full of pproblems. The best option is to simply do not do it. Create a new project from scratch and add your existing source files to it as needed.

Delphi XE2: LIB prefix/suffix/version setting for DLL application is missing in Project | Options

Prior to Delphi XE and below, the DLL application's project options has these setting:
LIB prefix
LIB suffix
LIB version
However, these settings are missing in Delphi XE2. Is this a bug in Delphi XE2 IDE? Or it will no longer supported in future version of Delphi IDE?
These settings are only shown in the project options for a package project. The settings still take effect for DLL projects if written directly into the source with $LIBPREFIX, $LIBSUFFIX or $LIBVERSION. It's quite possible that the settings can be made directly in the .dproj file even though the IDE doesn't have UI for the settings.

How to use TFS 2008 with Delphi 7 via MSBuild

Has anyone had any luck using MSBuild with Delphi 7 as part of a TFS 2008 (Microsoft Team Foundation Server 2008) integration? Curious if it is possible, and if it is, what is necessary to set it up.
Thanks!
Update: I am aware that the later versions of Delphi use MSBuild, but it would appear for right now upgrading isn't an option.
To use MSBuild with Delphi 7, you must first produce a representative .dproj file bearing the correct XML markup (as seen in later versions of Delphi). If you construct them properly, then MSBuild will recognize them, and (as directed in the XML markup) will place the appropriate calls to the Delphi 7 compiler.
It's simple enough, but it takes a lot of effort to manually produce the .dproj markup!
EDIT: This guy offers an apparently-functional automated solution to this problem, available on request!
You may write a MSBuild task that invokes dcc32.exe (delphi 7) and passes to it the appropriated commmand line (dpr file name). I wrote a similiar task for NANT in order to integrate delphi 7 with cc.net

How can I tell what version of Delphi was used to create a project

If I have complete source code to a delphi project, how can I tell what version (i.e. Delphi 5, Delphi 7, Delphi 2010 etc) was used to create it, without opening it in Delphi?
I have a number of projects dating back to Delphi 6 era that I would like to categorise. However I don't want to have to open each one in various versions of Delphi to figure out what version to use.
Delphi
project.dof
[FileVersion]
Version=7.0
BDS
project.dproj
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectVersion>
12.0
</ProjectVersion>
this is stupid, this site doesnt support TAB in textarea!

Resources