Description:
General discussion group for CS-Script C# scripting solution
|
|
|
LifetimeService timeout
|
| |
Hello,
I'm trying to use this as a script engine for a test tool where I'm
basically populating a combo box with all public methods available in
the script and executing the methods as if they were individual
scripts onto themselves. This tool will be loading and unloading
different script files, so I would like to use the Remoting pattern.... more »
|
|
How to redirect Console output
|
| |
Example:
I have a .NET UserControl with 2 textboxes.
textBox1.Text contains script which I execute.
I want to get output from all scripts Console.WriteLine() and put it
to the textBox2.Text.
Is it possible somehow?
Thanx,
Regards,
Oleg.
|
|
How to load WinForms application as a script ?
|
| |
Hi Oleg,
I have a set of WinForms applications.
Probably it was described somewhere but I did not find it..
How I can load application files as a script(s) and execute script as
my app?
Thanx,
Regards,
Oleg.
|
|
How to execute this kind of script?
|
| |
Hey Oleg,
Could you please explain me why this script gives an error? and is it
possible to pass array to script function?
1. script
using System;
using System.Windows.Forms;
public class Script
{
static public void Main(string[] args)
{
// for( int i = 0; i<args.Length; i++)... more »
|
|
cannot find the specified file
|
| |
Hello,
I'm running ubuntu, and I followed the protocol suggested here:
[link]
Here's what I get:
$: mono -V
Mono JIT compiler version 2.10.5 (Debian 2.10.5-1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
[link]... more »
|
|
Specify app.config file for new AppDomain
|
| |
I am using the following code to compile a script and load it into a new AppDomain: asmName = CSScript.Compile(scriptFile, asms); mAsmHelper = new AsmHelper(asmName, asmName, true); I need to be able to specify the app.config file for the new AppDomain because it does not seem to use the one from the .exe.... more »
|
|
Compiler executable file csc.exe cannot be found.
|
| |
I have a .NET service application which is a WCF Web Service. When my
program calls CSScript.Compile I get an exception that says, "Compiler
executable file csc.exe cannot be found." However, this works fine
when I run under the WCF Service Host (WcfSvcHost). Any ideas or
suggestions?
Thanks,
Mark... more »
|
|
Debugging scripts
|
| |
I was experimenting with a temporary, quick-and-dirty method for
debugging a script this evening and hit an interesting issue.
My attempt was to put a System.Diagnostics.Debugger.Br eak() statement
in the script. My assumption was that the JIT debugger (Visual Studio
2010 at this point on my machine) would pop up and allow me to debug... more »
|
|
|