//.cs 文件类型,便于外部编辑时使用
// 引用必要的命名空间
using System.Windows.Forms;// Quicker将会调用的函数
public static void Exec(Quicker.Public.IStepContext context)
{
//var oldValue = context.GetVarValue("varName"); // 读取动作里的变量值
//MessageBox.Show(oldValue as string);
//context.SetVarValue("varName", "从脚本输出的内容。"); // 向变量里输出值
var path = context.GetVarValue("path");
var fileExt = context.GetVarValue("fileExt");
string[] files = System.IO.Directory.GetFiles(path, fileExt);
context.SetVarValue("files", files)
}
600异常:c:\Users\Poto\AppData\Local\Temp\CSSCRIPT\dynamic\4372.f7583b54-bb10-4537-af2e-b2cb573fbeac.tmp(18,40): error CS1002: 应输入 ;在 csscript.CSExecutor.ProcessCompilingResult(CompilerResults results, CompilerParameters compilerParams, ScriptParser parser, String scriptFileName, String assemblyFileName, String[] additionalDependencies)
在 csscript.CSExecutor.Compile(String scriptFileName)
在 CSScriptLibrary.CSScript.LoadWithConfig(String scriptFile, String assemblyFile, Boolean debugBuild, Settings scriptSettings, String compilerOptions, String[] refAssemblies)
在 CSScriptLibrary.CSScript.LoadCode(String scriptText, String tempFileExtension, String assemblyFile, Boolean debugBuild, String[] refAssemblies)
在 CSScriptLibrary.CodeDomEvaluator.CompileCode(String scriptText)
在 ib9cApVeMcKPEu6pUV6.Qyww3RVMWs2GyGPtWO2.vR9MNZdbjC1(String , String , Boolean , ActionExecuteContext )
在 Quicker.Domain.Actions.X.BuiltinRunners.Other.RunCsScriptStep.<>c__DisplayClass43_0.DX6ZMHNxeGE()
在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)600步骤(sys:csscript)执行失败,原因:c:\Users\Poto\AppData\Local\Temp\CSSCRIPT\dynamic\4372.f7583b54-bb10-4537-af2e-b2cb573fbeac.tmp(18,40): error CS1002: 应输入 ;614停止动作:c:\Users\Poto\AppData\Local\Temp\CSSCRIPT\dynamic\4372.f7583b54-bb10-4537-af2e-b2cb573fbeac.tmp(18,40): error CS1002: 应输入 ;