Home / General / CSBat: The C# Interpreter
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

CSBat: The C# Interpreter

Just to try out this idea I wrote out CSBat.cs, which allows C# code in bat and cmd files.


Here is the problem this solves: Frequently I just want to write a short C# snippet. I don't want to write it as a source file, compile it, and run it. I'd rather just put the snippet in a bat file and run the bat file. I want to shorten the code-compile-execute loop to just code-execute. CSBat solves this problem. (Note: The in-memory compiler code was taken from Don Box's CSRepl from his blog. Also you will need the Whidbey 2.0 runtime to play with this sample.)


Here is how to use the







Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites