February 5. 20:00 -  Imagine the worst nose itch ever. Then imagine arms that are too short to scratch your nose. #enjoy

New tool: On The Fly

February 23, 2009 19:45 by docbliny

I’ve added a new tool to the downloads page called On The Fly .NET. It’s a simple utility that lets you type in C# or VB.NET and run it. I use it mainly to test little snippets of code and for writing samples when I want to make sure they actually compile (and possibly run). It has basic syntax highlighting and code completion so it makes it easier to test things or check the name of a property/method.

OnTheFly

I haven’t done any thorough testing, but you’ll need at least .NET 2 and might need 3 since it currently imports some of the base WPF classes.

To output a result, you can simply use Console.Write()/WriteLine() and the content will be displayed in a separate window. It’ll remember some basic settings such as the code you last typed. You’ll need the Main function to exist as that will be the starting point of the dynamically compiled application, but you can always get the default template in the correct language which contains the required stub code by clicking New….


Comments (3) -

3/1/2009 10:55:53 AM #

Eric Burke

Very cool!  Are you able to publish it via ClickOnce?

Eric Burke United States

3/1/2009 10:57:37 AM #

Eric Burke

One note: it requires elevation on Vista -- maybe you could install to the user's directory?

Also, have you played around with the .NET 4.0 dynamics yet?

Eric Burke United States

3/1/2009 6:31:54 PM #

docbliny

Frankly, I wasn't expecting anyone to find, let alone install, this. I just slapped the setup package together to get it out, but I'll try to find some time to make a better install experience at some point.

docbliny

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading