Questions tagged [cs-script]

CS-Script is a CLR (Common Language Runtime) based scripting system which uses ECMA-compliant C# as a programming language. CS-Script currently targets Microsoft's implementation of CLR and has full support on Mono.

39 questions
0
votes
1 answer

CsScript with Mono: How to make mono not treat warnings as errors

I use CSScriptLibrary.dll to execute C# code in my application which runs on both Windows and Linux. Problem is, right now, I need to use #pragma disable warning to disable all kinds of warnings that may arise in order to get the scripts to compile…
henon
  • 2,022
  • 21
  • 23
0
votes
1 answer

How to pause or stop "CSharpScript" running?

I'm using Roslyn's scripting API in my application, code snippet as following: public class ScriptEngine { public static string CodeText; public static event Action CompileErrorEvent; public static async Task
NPU行者
  • 1
  • 2
0
votes
1 answer

How do I stop a script loaded with CSScript?

I run user defined scripts in my WPF application using CS-Script library. How can I cancel a script if it runs endless? As my users write the script I can't rely on a cancel flag that is checked inside the script. Here is a simplified code snippet…
MTR
  • 1,690
  • 3
  • 20
  • 47
0
votes
1 answer

error when trying to debug an external process using notepad++ and csscript

For my company I am tasked with finding a way to debug external processes and 'cs scripts'. The thing i'm trying to achieve is letting project engineers (who do not have visual studio) debug the scripts they write. We have quite a neat system where…
Vincent
  • 1,497
  • 1
  • 21
  • 44
0
votes
4 answers

How to use external library in c# script having different namespace and dll

I want to use novacode-docx in cs-script. how can I give correct reference to the assembly. I tried following but didn't work around the assembly reference missing. //css_reference D:\lib\DocX.dll; using System; using System.Diagnostics; using…
Rahul
  • 10,830
  • 4
  • 53
  • 88
0
votes
1 answer

How to open .rtf files as text stream

I am very very novice to c# and .net and trying to understand it. I am using solution from how to read all files inside particular folder and trying to apply in my below code. using System; using System.Collections.Generic; using System.Linq; using…
Rahul
  • 10,830
  • 4
  • 53
  • 88
0
votes
0 answers

Control WPF c# application via script

I'm analysing if it is possible to control my application with scripts/macros. My application is a WPF application written in c#/VS2015 and I'm trying to do the following (pseudo code) public interface IExposedTasks { IEnumerable
Mikael
  • 71
  • 1
  • 6
0
votes
1 answer

How to handle resetting CS-Script with concurrent web users

When using CSScript.Evaluator.Reset(), will this reset anyone else that is currently using the same script or build? Another way of asking my question. script = CSScript.Evaluator.LoadCode(scriptString); If another user came thru and called the same…
Yogurt The Wise
  • 4,379
  • 4
  • 34
  • 42
0
votes
1 answer

Start CS-Script as administrator

I have some CS-Script with a complex logic, need to start that script as administrator. I tried to add //css_npp asadmin to the beginning of the script file, it doesnt work, so maybe i do something wrong. Main point is that i need to specify…
foji
  • 1
  • 2
1 2
3