Unable to run CSharp programs

Support for all customers who have purchased a PrimalScript product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
vmaddux
Posts: 1
Joined: Fri Jun 13, 2014 10:03 am

Unable to run CSharp programs

Post by vmaddux » Tue Jun 17, 2014 4:23 pm

I am having some difficulty with CSharp and PrimalScript 2014 (7.0.37). Upon running C# files, the error message that appears states "The specified command "$FileTitle$.exe" cannot be found". This appears to be a misconfigured CS compiler.

The Languages list in Options/Environment states that C# is set to the "$FileTitle$.exe" variable, and that the directory is $FileDir$.

Would you be kind enough to inform me where to point the Script Interpreter or Compile/Syntax Check options for C#? I have tried to set it to C:\Windows\Microsoft.NET\Framework64\v4.0.XXXXX\csc.exe, but that returns warning CS2008: No source files specified and error CS1562: Outputs without source must have the /out option specified. Running the file with the CScript (Windows Script Host) x64.exe located in C:\Program Files\SAPIEN Technologies, Inc\PrimalScript 2014\ScriptEngines\CScript (Windows Script Host) x64.exe returns Corrupt image file!.