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.
Questions tagged [cs-script]
39 questions
7
votes
1 answer
Intellisense for csx in VisualStudio 2015
I am new in programming cs scripts (csx files).
But I have the problem that I do not have any intellisense. How can I get intellisense support in Visual Studio 2015 for it?

Sascha
- 601
- 1
- 8
- 23
6
votes
3 answers
How to Add a Reference to a C# Script
I am using the CS-Script library to execute dynamic code. Rather than using it as a script engine, I want to use it to plug functionality into an application on the fly. Here's the hosting code...
using System;
using CSScriptLibrary;
using…

mason
- 31,774
- 10
- 77
- 121
4
votes
1 answer
How do I show line numbers on stacktrace in a executing CSScript?
We're hosting the script in out app. On exceptions/crashes, we'd like to see the line number in the stacktrace.
I can't find if there is a setting to include debug info when setting up the CSScript compiler?

Macke
- 24,812
- 7
- 82
- 118
4
votes
2 answers
Does CS-Script provide sandboxing out of box?
I'm researching cs-script and I'm wondering about how secure it is, out of the box. I know a script is loaded and unloaded dynamically, but can that script escape its executing assembly? i.e. can it use reflection to access and instantiate classes…

Meirion Hughes
- 24,994
- 12
- 71
- 122
3
votes
1 answer
C# compiling source files as plugins
i want to make plugin support for my program
the goal is to make it compile files in plugin folder and launch
few methods but i can get it working
my current progress using CSScriptLibrary :
public static void run(String fileName, String…

rzhw3h
- 59
- 4
2
votes
0 answers
cs-script Unexpected character "$"
Use cs-script in a console app with
dynamic script = CSScript.LoadCode(
@"using System;
public class Script
{
public void…

zhusp
- 131
- 12
2
votes
1 answer
Adding a Reference to a CS-Script in Notepad++
I'm having reasonable results using CS-Script in Notepad++ (I can create, edit, run and debug basic C# scripts), but I must be missing something because I can't find a way to add References to the Script Project window.
For example, when I select…

Andrew Jens
- 1,032
- 15
- 16
2
votes
1 answer
Async in JScript
I've recently noticed that the library I'm using to compile and use C# files like scripts in my applications (CSScript) can compile VB and JScript as well. One of my applications makes use of await/async (C# 5) though, does this exist in JScript? I…

Mars
- 912
- 1
- 10
- 21
2
votes
0 answers
How can I use C# to script a C# application with variable and class access
I can find a lot of info on using C# as a scripting language (CSScript, Mono, Roslyn), but none of it seems to do what I need (or it does and I simply don't understand how to use it).
What I want to be able to do is this: Let's say I write a C#…

Synaps3
- 1,597
- 2
- 15
- 23
2
votes
2 answers
CS-Script Evaluator LoadCode: How to compile and reference a second script (reusable library)
The question in short is: How do you reference a second script containing reusable script code, under the constraints that you need to be able to unload and reload the scripts when either of them changes without restarting the host application?
I'm…

wezzix
- 1,984
- 1
- 19
- 18
1
vote
0 answers
Notepad ++: CS script Error CS0009 for reading CoolProp.dll file
Some background: I am a newbie to C# and programming in general. Utilizing notepad ++ for my script writer and compiling the program through the command prompt. I am using the CS-script plug in for building CS projects. I am a full time mechanical…

ST_MECH
- 11
- 1
1
vote
1 answer
Invoke method CsSCript Notepad++
I have this simple method CallMethod made in Notepad++ with CsScript.
How to invoke in from VS ?
namespace TestCall
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using…

Simone Lo Paro
- 11
- 1
1
vote
0 answers
How to install cs-script on Mac properly
I installed cs-script from here on my Mac (using High Sierra) manually. I want to use it for SublimeText v3. The plugin loads - so far so good.
The problem is that when I try to execute my code with cs-script nothing happens.
The documentation here…

drpelz
- 811
- 11
- 43
1
vote
0 answers
How to specify assembly information when compiling code at runtime with cs-script library?
I am creating an assembly at runtime with CSScriptLibrary.
Everything works fine, but my resulting assembly does not have the required assembly information.
If I include the assembly information attributes (found in AssemblyInfo.cs in every C#…

User81772
- 66
- 6
1
vote
0 answers
How to get english Warnings and Errors from CS-Script
I use CS-Script to compile code at runtime. I do this like follow and read the generated Errors and Warnings after out of the ComipilingHistory:
var eval = CSScript.Evaluator;
var assembly = eval.CompileCode(code);
if…

BennoDual
- 5,865
- 15
- 67
- 153