Project Description

Dynamically execute C# script files in the same way that you might use VB scripts.

I wrote this application so that I wouldn't have to write ugly VB scripts anymore. Associate the executable output of this project with "*.csharp" files, then double-click a C# script to execute.

The scripts run on C# 4.0, and I have added a preprocessor directive system out of necessity. Specifically, the following have been added:

1. #reference "assembly.dll"

The "reference" directive will add a reference to an assembly. Like adding a reference to your project.

2. #include "filename.csharp"

This one works like the C++ "include" directive. The code line of the include will be replaced by the contents of the target file.

Examples

ResourceManager Script

Last edited Aug 3, 2010 at 3:50 PM by treytomes, version 7