Shared mode

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
Otto
Posts: 174
Joined: Wed Sep 30, 2015 6:22 pm

Shared mode

Post by Otto »

Where is shared mode settings value stored? I thought it would be in the rsp file.
Edit: I see that it is in the .xsproj file, but I don't see a relation to the rsp file.
How does the cmd compiler link the .xsproj file?
User avatar
robert
Posts: 4519
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Shared mode

Post by robert »

Otto,

The /shared command line option is NOT stored inside the response file.
It must always be passed on the command line.
The xcs tool "knows" about the /shared compiler option and calls the resident program XSCompiler.exe with the complete commandline except the option /shared (
The resident program does not understand the /shared command line option)

Btw there is another command line options that can be used together with /shared and which is also not sent to XSCompiler.exe

/keepalive:=<TimeInSeconds>

This tells the XsCompiler.exe how long to stay in memory after the last compilation has finished.
The default for the keepalive valus is 600 seconds (10 minutes).
And you can also set this default in a config file if you want.
We will include a config file with the next build.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply