supermomonga / QuickSharp

Easy way to execute your C# script via.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuickSharp

An easily way to run your C# code without any namespace or entrypoint class/method.

How to build

It's very easy.

  1. Clone this repository into somewhere in your computer
  2. Compile it.
git clone git@github.com:supermomonga/QuickSharp.git path/to/QuickSharp
cd path/to/QuickSharp
dotnet restore
dotnet build -c Release

This will create dotnet-quicksharp.dll in path/to/QuickSharp/Release/netcoreapp1.1/.

How to use

Create .cs file as you like. Here is example.

using System;
Console.WriteLine("Hello, World!");

Assuming this file is placed as ./sample.csx, Only you need to execute this is to run following command.

dotnet [path/to/dotnet-quicksharp.dll] ./sample.csx

🎉 Tada! You'll see Hello, World! text in stdout!

About

Easy way to execute your C# script via.


Languages

Language:C# 100.0%