ClearScript
CodingTrainer
Our great sponsors
ClearScript | CodingTrainer | |
---|---|---|
8 | 2 | |
1,659 | 0 | |
2.1% | - | |
5.6 | 0.0 | |
about 1 month ago | over 1 year ago | |
C# | C# | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ClearScript
-
I found a remote code execution bug in VSCode that can be triggered from untrusted workspaces. Microsoft fixed it but marked it as moderate severity and ineligible under their bug bounty program.
Microsoft makes ClearScript
-
Is there a way to dynamically interpret a string as javascript within a C# winforms program?
I've used ClearScript before to use JavaScript as a DSL in a tool. No issues at all. https://github.com/microsoft/ClearScript
- [OC] Options for Runtime (Dynamic) Scripting for .NET [C#, Scripting, Modding]
-
Lua or JavaScript as an extension language?
I've had good luck with Microsoft's Clearscript - https://github.com/microsoft/ClearScript)
-
Scripting languages that use host language's libraries?
The ClearScript library https://github.com/microsoft/ClearScript enables V8, JScript and VBScript to be used as extension languages for .NET languages. Our company uses it extensively and has done so with great success for years. Anything done in C# can be exposed to the scripting language and to some extent back the other way as well.
- What is the/your current/popular choice for dotnet c# scripting ?
-
Compiling source at runtime using dotnet 5
Along the same lines, I use Microsoft ClearScript which uses JavaScript.
- ClearScript: Library to add scripting to .NET applications
CodingTrainer
-
How to add coding challenges to my web page
I did this a few years ago, ended up using it as the basis of my Masters thesis. Feel free to borrow any of my code that’s useful, or ask me questions. It was all done in Framework because Core didn’t have a way of compiling code at runtime then, so I’m not sure how relevant it is now but I’m sure some of it will be useful.
-
Compiling source at runtime using dotnet 5
I have a working example that you can look at: https://github.com/ddashwood/CodingTrainer. This was a project I did for my Masters degree, which allows users (in my case, the users were C# students) to type in code, then it runs the code and analyses whether it's correct. From memory, the CodeHost, PartiallyTrusted and SandboxHost projects are the ones you'd need. Feel free to PM me if you need any more info.
What are some alternatives?
cs-script - C# scripting platform
dotnet-script - Run C# scripts from the .NET CLI.
bullseye - 🎯 A .NET library for running a target dependency graph.
ScriptCS - Write C# apps with a text editor, nuget and the power of Roslyn!
simple-exec - 🏃 A .NET library that runs external commands.
interactive - .NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
rhino - Rhino is an open-source implementation of JavaScript written entirely in Java
ExpressionEvaluator - A Simple Math and Pseudo C# Expression Evaluator in One C# File. Can also execute small C# like scripts
UpdatR - Update tool for package reference and dotnet-tools.json
Westwind.Scripting - Small C# library to provide dynamic runtime code compilation from source code for code and expressions execution