OSDN Git Service

version 1.00
[c-sharp-s-batch/C-sharp-s-batch.git] / README.txt
1 === C# script batch 1.00 ===\r
2 \r
3 This is batch file to execute immediately C# language like scirpt.\r
4 It uses C# compiler preinstalled on Windows 7/10.\r
5 Please install mono on bash (Ubuntu Linux).\r
6 \r
7 \r
8 Example of C# (.cs) : Shows "Hello, world!".\r
9 ---------------------------------------------------------\r
10 using  s = System;  // Alias "s::"\r
11 \r
12 class MainClass\r
13 {\r
14         static void  Main()\r
15         {\r
16                 s::Console.WriteLine( "Hello, world!" );\r
17         }\r
18 }\r
19 ---------------------------------------------------------\r
20 \r
21 Please set up to open by cs_script.bat, if .cs file was double clicked.\r
22 You can execute C# like batch file and WSH (VBScript/JScript).\r
23 You can execute by drag and drop .cs file on cs_script.bat, even if you did not set up.\r
24 \r
25 *** Attention: Don't execute malicious .cs file!\r
26 \r
27 On command promt, the batch file does not wait for any key input at the end of\r
28 .cs file, if command line was specified with /c option.\r
29 Example:\r
30 ---------------------------------------------------------\r
31 cs_script.bat  new.cs  /c  Parameter1\r
32 ---------------------------------------------------------\r
33 \r
34 On bash, please specify with "cs-script" in your shell.\r
35 Example:\r
36 ---------------------------------------------------------\r
37 ./cs-script  new.cs  Parameter1\r
38 ---------------------------------------------------------\r
39 \r
40 You can connect with debugger, if "// Debug=on" was written in .cs file.\r
41 But it is necessary to be installed Visual Studio Express 2015 for Windows Desktop\r
42 and so on and be extracted content in cs_script_project.zip\r
43 at "Visual Studio 2015\Projects\cs_script" in user document folder.\r
44 \r
45 On bash, connecting with debugger is not suppored.\r
46 \r
47 Please edit cs_script.bat, if you change version of C# compiler and\r
48 the project for debugging.\r
49 \r
50 \r
51 cs_script ver 1.00\r
52 cs_script is provided under 3-clause BSD license.\r
53 Copyright (C) 2016 Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.\r
54 http://www.sage-p.com/\r
55 \r