The pro SDK is very strong and we like to use it as a server to do some jobs.
Unlike ArcObjects it does not run outside Pro (Except the geodatabase library).
The RunTime does not always give a solution plus we need to program with other libraries.
First, is this allowed by the license (for ArcObjects we needed a server license).
I am thinking about a few options.
1) Install a pro on the server that have an extension that check some files in a directory and process them. A window service will run the pro once in a while. Is it possible to close Pro from within the SDK (close myself)?
2) Running pro manually and press a button that run a timer or open a port for messages that will trigger the action and just keep it open.
The pattern to use is CoreHost - assuming you need access to the Geodatabase. It requires a Pro license and a Pro install on the server machine. Pro, itself, does not have to be running.
However, the application framework, maps, layouts, and so forth, are not accessible from CoreHost. If you need to access Pro project files and their content, the preferred pattern would be arcpy.
IIRC, the arcmap license prohibited setting arcmap.exe up as a map server. I thought I'd check with the Pro terms & conditions to see if same restriction applies. However, the only way I see to do that is to re-install, and actually read the terms before clicking "agree". (Seems like there ought to be an easier way to read what I agreed to when I installed.)
I see. Thanks for that.
What I told Mody to do was run a console executable, not Pro. However, for that console executable to run, it will need Pro installed. The console executable will need two references - the ArcGIS.Core and ArcGIS.CoreHost dlls - hence the name "CoreHost".
The Original questions comes from BUG-000136452 when import to PDF does not work the same with open Pro or stand alone python program. The CoreHost is basically covered by ArcPy. As I said there is still a "few" things that the SDK can do but not ArcPy that need to be done on a stand alone (or at least not interactive) program.