Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[JhonelPaulo18]APPS: C# Compiler for Console Apps. (FrontEnd for csc.exe)

jhonelpaulo18

Novice
Advanced Member
Messages
24
Reaction score
0
Points
26
Hi guys, tamad ba kayo magdownload ng visual studio ? kayo ba ung mga taong mga console programmers lang talaga.. mga nasanay sa programming language na ruby, python, javascript/java, perl etc. na wala talagang IDE based application for creating a Graphical User Interface ? gusto niyo maitry ang C# pero ng wala si visual studio na sakit na ng mga ulo natin, sakit pa ng space sa hard drive natin? ito na ang solusyon sa problem niyo ! --- DEDICATED FOR 'NOTEPAD ++' CODERS --- (meaning they only use normal text editor for programming)..

Dahil mga programmer kayo di ko na po iisa isahin ang steps ha.. back to old school muna tayo ! batch scripting muna tayo. ang gagaling niyo sa linux shell may pa sudo sudo pa kayong nalalaman pero pagdating kay Windows Command Prompt limot niyo na :( wag ganun ! whahaha jowk ! walang maoofend ha ! OK LET'S START.

Copy/Paste this to notepad and save as CSHARPCOMPILER.BAT OR CSHARPCOMPILER.CMD
Code:
@echo off
title CSharp Compiler by (*c0mpi13r*)
echo.
echo ================================================
echo       ---- C# Compiler by (*c0mpi13r*) ----
echo       ---- Script Created on 16/2/2015 ----
echo       ----   Front End for MS CSC.EXE  ----
echo        ***        JhonelPaulo18        ***
echo ================================================
echo.
set /p "source=SourceFile> "
set /p "out=OutputFile> "
csc.exe /t:exe /out:%out% %source%
pause

after that.... you need to put csc.exe & cscui.dll in the same folder where you save the batch file...

Where will you find that ?
HERE: C:\windows\Microsoft.NET\Framework\v4.0.30319.. (for .NET 4 USERS)
search for the file: csc.exe & cscui.dll and copy them to your batch file location..

OR

HERE: C:\windows\Microsoft.NET\Framework\v3.5 (for .NET 3.5 USERS)
search for the file csc.exe & cscompui.dll and copy them to your batch file location..


after that.. how to use ?
1. Open CSHARPCOMPILER.BAT
2. Drag the C# Source Code (.cs file) to the console or cmd window. then press enter.
3. Type in the output exe filename (EX: mycsconsole.exe). then press enter.
4. After that, you will see your c# source code compiled in exe in the batch location..
5. Run and play with it :) see if there is errors. if none, SHARE YOUR PROGRAM HERE IN SYMB ! :))

ok that's it TUTORIAL DONE !
 
Back
Top Bottom