I have searched and can’t really find any info on this here, nor in the wiki. We have a Delphi server and have RODL that frequently changes. One of the nice things about a Delphi client is that the Intf files are shared with server, so when they regenerate on compile, the client automatically has the latest version as well and will break if there are changes to the Intf files that need attention. Now that we have an ASP.NET project, we would like to have the C# Intf files autogen when the server is recompiled, or have the VS project regen the RODL files on compilation to catch things at compile time when there are changes. Is there any way to accomplish this currently in an automated fashion?
Hello,
In your case you could use RODL.exe command line tool shipped with RO SDK (can be found in \RemObjects SDK (Common)\Bin directory). It is able to generate C# code from your RODL file. You could use it from Pre-Build event of your client project to make sure _intf file is always match the RODL.
Best regards - Sergey.
Thanks - I think that will work out for us! Appreciate the quick response!
Actually - I have a quick follow-up… The C# generated has the “Your.Namespaces.Goes.Here” and needs to be modified. Before we roll something custom to replace that in a batch file, I just wanted to verify that there was not a capability for the RODL tool to do this automatically. Thanks!
Hello,
There is a “Namespace” field in the Service Builder (see the screenshot), fill it once and that namespace will be used for C# code.
Best regards - Sergey.
This corresponds to the Namespace attribute of the Library node if you look inside the RODL file:
<?xml version="1.0" encoding="utf-8" ?>
Ah, I see - thanks - sorry I overlooked such a simple answer!