/ Published in: C#
URL: http://reboltutorial.com/blog/redirect-shell-to-rebol-console/
Easily compile c# exe or library by command line
Expand |
Embed | Plain Text
csc-path: "C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" set 'csc.exe func[file [string! unset!] /library /references references-list /doc][ either not (value? 'file) [ source: read clipboard:// replace/all source "ReadKey()" "Read()" delete %temp.cs write %temp.cs source command: rejoin [csc-path " /t:exe /checked /debug /out:" "output.exe" " " "temp.cs"] call/wait/console command call/console "output.exe" ][ either library [ command: rejoin [csc-path " /t:library /checked /debug /out:" "output.dll" " " quote file] ][ command: rejoin [csc-path " /t:exe /checked /debug /out:" "output.exe" " " quote file] ] if references [ foreach reference references-list [ append command " /reference:" append command quote reference ] ] if doc [ append command " /doc:" append command "output.xml" ] call/wait/console command either library [][ call/console "output.exe" ] ] ]
You need to login to post a comment.
