TD-23861: Support all target type found in build setting when compiling using the command line
-
- Founder/Site Admin
- Posts: 3510
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
TD-23861: Support all target type found in build setting when compiling using the command line
Building applications from command line (automated builds):
Currently only TD EXE and APD are supported.
1) All possible target types (win32 and .NET) should be supported by the command line. Our priority is COM server (exe)
2) Be able to 100% use the build settings of the file without knowing which target is defined.
Example: a new switch (-a) will automatically read the build settings from the source file and will build it AS-IS, so the file itself contains everything.
So the -a switch is the same as manually build from the TD IDE without having to indicate anything.
Currently only TD EXE and APD are supported.
1) All possible target types (win32 and .NET) should be supported by the command line. Our priority is COM server (exe)
2) Be able to 100% use the build settings of the file without knowing which target is defined.
Example: a new switch (-a) will automatically read the build settings from the source file and will build it AS-IS, so the file itself contains everything.
So the -a switch is the same as manually build from the TD IDE without having to indicate anything.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: TD-23861: Support all target type found in build setting when compiling using the command line
Hi Dave,
not sure if I understood it completely.
But you can build COM-Server (.exe and .dll) with command line:
cbi70.exe -b comserver.apt comserver.exe
The only thing is that build settings in comserver.apt must be set to COM Server.
Regards Thomas
not sure if I understood it completely.
But you can build COM-Server (.exe and .dll) with command line:
cbi70.exe -b comserver.apt comserver.exe
The only thing is that build settings in comserver.apt must be set to COM Server.
Regards Thomas
-
- Founder/Site Admin
- Posts: 3510
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-23861: Support all target type found in build setting when compiling using the command line
Even if I set it to com server, the resulting exe/dll is invalid as it can not be registered.thomas.uttendorfer wrote: ↑15 Dec 2017, 10:40But you can build COM-Server (.exe and .dll) with command line:
cbi70.exe -b comserver.apt comserver.exe
The only thing is that build settings in comserver.apt must be set to COM Server.
Regards Thomas
Here I have testcases. The register batch file only works when building manually from IDE and the command line way results in an error when registering.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
-
- Founder/Site Admin
- Posts: 3510
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-23861: Support all target type found in build setting when compiling using the command line
And forgot to mention that none of the .NET build targets is supported through the command line.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: TD-23861: Support all target type found in build setting when compiling using the command line
Hi Dave,
strange. I can reproduce the problem with your files.
But another fact is that we build a dll-COM automatically and even register it automatically through a .bat nightly.
And on dozens of customer sites...
I didn't have the time to investigate further - maybe next year or in my holydays next week.
Regards Thomas
strange. I can reproduce the problem with your files.
But another fact is that we build a dll-COM automatically and even register it automatically through a .bat nightly.
And on dozens of customer sites...
I didn't have the time to investigate further - maybe next year or in my holydays next week.
Regards Thomas
-
- Founder/Site Admin
- Posts: 3510
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-23861: Support all target type found in build setting when compiling using the command line
Well, this old one I did investigate our ticket history due to a new question here:
viewtopic.php?f=2&t=73646
And I see that due to asking two things in the ticket, only one was addressed and solved.
In fact we have two TD defect numbers in the end:
TD-23861: Extend/enhance TD command line for building
(This one was used by OpenText to create an enhancement request to implement support of all build types incl the .NET targets)
TD-24899: COM server builds using command line are invalid when source and target folders differ
(which fixes the COM server target issue)
I did not pay attention and set this topic to solved. But it was actually not. It is still an enhancement request which seems not be implemented till now.
OpenText did solve TD-24899 in TD 7.2.2
I have removed the "solved" flag from this topic.
viewtopic.php?f=2&t=73646
And I see that due to asking two things in the ticket, only one was addressed and solved.
In fact we have two TD defect numbers in the end:
TD-23861: Extend/enhance TD command line for building
(This one was used by OpenText to create an enhancement request to implement support of all build types incl the .NET targets)
TD-24899: COM server builds using command line are invalid when source and target folders differ
(which fixes the COM server target issue)
I did not pay attention and set this topic to solved. But it was actually not. It is still an enhancement request which seems not be implemented till now.
OpenText did solve TD-24899 in TD 7.2.2
I have removed the "solved" flag from this topic.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: TD-23861: Support all target type found in build setting when compiling using the command line
TD-23861: Extend/enhance TD command line for building
It looks like this had been implemented:
Best regards,
Peter
It looks like this had been implemented:
Opentext will update Windows Help to include this information."Sorry for the inconvenience.
The command line is available, but his information is not available in Windows Help.
For more reference, please refer to the topic "Compiling from the Command Line" in the TD.NET projects document."
cbi75.exe -.net:AutoDesktop test.dll
Best regards,
Peter
Who is online
Users browsing this forum: [Ccbot] and 1 guest