Sunday, July 26, 2009

FYI - This Blog is closed

Dear readers,

this Blog is closed and will never be updated.
If you like this project, you are welcome to take it over.

See you.

Monday, October 13, 2008

Documentation

I just have started to publish a documentation about available commands.

You can look at it here: http://www.codeplex.com/CSScript/Wiki/View.aspx?title=Documentation

Wednesday, October 1, 2008

Next Release available

Sorry for the delays...

I am glad to tell you that a new release is avaliable for download.

Codeplex Download

The current Version is 0.8.

it is a stable runtime for your C# Scripts.

Some Features:

  • Extensiblity with Modules
  • Feature to load CS-Files
  • Property to get the RuntimeVersion
  • better error messages
  • redesign of architecture
  • many bugfixes


Documentation, Examples and Modules will following.

Friday, May 9, 2008

What next ...

Some people asking me "is the project still alive ?".
The Answer is YES.

Currently we working on Version 0.2.
Main Workitems are:

  • Better performance

  • Support for Modules
    Modules are a functions wich extend the usability of CSScript as a real scripting language.
    e.g. the Module "dos.csm" will give you some of the basic dos functions like copy, move and delete files ...
    More information about that at the next release.

  • Support for 64 Bit installations

  • Support for CommandPrompt (cmd.exe) scripts


Release 0.2 is planned for 05/2008

Thursday, January 10, 2008

Edit CSScript - Files with VisualStudio

With just two steps you can use VisualStudio to edit your CSScript -Files (*.csr).

Step 1


Inform the VS about the fileextension.

To do that please follow these steps:

  • start VS

  • open Tools/Options - Dialog

  • scroll down to "File Extensions"

  • enter "csr" to Extension Field

  • select C# as Editor and click on "Apply"




Step 2


Make your CSR - Code valid for intellisense and the c# compiler.
Sample:



#region HEADER
#if CSSRIPT
//place for the C#Script - Directives
loadASM "System.Windows.Forms.dll";
#else
//ignore this part
public class vsdummy
{
public void Main()
{
#endif
#endregion
//######################
//start of script - code
//######################

string msg = "Hello World";
for(int i=0;i<3;i++) msg+=String.Format("\n{0}...",i);

System.Windows.Forms.MessageBox.Show(msg, "CSSCript - Sample");

//####################
//end of script - code
//####################
#if !CSSRIPT
}
}
#endif


Have fun...

Monday, December 10, 2007

Command - Details: loadASM

Calling Convention: void loadAsm [AssemblyName];

This command load .net assemblys which needed to execute the script.

Please look at the following restrictions:

  • Assemblys which resides only in the GAC are not supported
    (at the Moment)

  • CSScript looks for Assemblys only in:

    • RunTime - Directory (installdir)

    • Script - Directory

    • .Net Framework - Directory
      (%winroot%\Microsoft.NET\Framework\v2.0.50727)





Next Version becomes a command to add additionals folders.

Friday, December 7, 2007

First Runtime is Released

The firt CSScript - Runtime (V0.0.1 - Prototype) ist just released here:

http://www.codeplex.com/CSScript/Release/ProjectReleases.aspx?ReleaseId=8886

You can run some simple scripts like these:

loadASM "System.Windows.Forms.dll";

string msg = "Hello World";
for(int i=0;i<3;i++) msg+=String.Format("\n{0}...",i);

System.Windows.Forms.MessageBox.Show(msg, "CSSCript - Sample");