使用Notepad++开发C#,一个复杂点的csscript脚本:

//css_dir ..\..\lib;
//css_ref Geb.Image.dll;
//css_ref Geb.Image.ShapeAnalysis.dll;
//css_ref Geb.Utils.dll;
//css_ref Geb.Utils.WinForm.dll;
//css_co /unsafe; using System;
using Geb.Image; unsafe class Program
{
public static void Main()
{
ImageArgb32 img = new ImageArgb32(300,200);
img.Fill(Argb32.RED);
img.ShowDialog();
}
}

// css_dir 设置搜索库目录的路径;

// css_ref 引用dll;

// css_co 设置编译参数;

05-11 14:11