public PropertyCheckFrm(IEnvironment env) { _parser = MSBuild.MakeEvaluator(env); InitializeComponent(); Icon = Resource.Package_32; }
public PropertiesFrm(IEnvironment env, ITransfer pin) { InitializeComponent(); Icon = Resource.Package_32; _env = env; _msbuild = MSBuild.MakeEvaluator(_env); _pin = pin; _cacheProperties = new ConcurrentDictionary <string, IEnumerable <PropertyItem> >(); }
public ToolContext(IEnvironment env) { Log.Trace("Initialization of the clean context for testing."); var soba = new Soba(MSBuild.MakeEvaluator(env, uvars), uvars); Bootloader._.Configure(soba); cloader = soba; inspector = new Inspector(soba); script = soba; msbuild = soba.EvMSBuild; }
/// <param name="type">The type of step.</param> /// <returns></returns> protected IStep getStep(StepsType type) { if (steps.ContainsKey(type)) { return(steps[type]); } switch (type) { case StepsType.Gen: { steps[type] = new StepGen(); return(steps[type]); } case StepsType.Struct: { steps[type] = new StepStruct(MSBuild.MakeEvaluator(env)) { fnumber = StepStruct.NumberType.NativeStruct }; return(steps[type]); } case StepsType.DirectRepl: { steps[type] = new StepRepl(); return(steps[type]); } case StepsType.CfgData: { steps[type] = new StepCfgData(); return(steps[type]); } case StepsType.Fields: { steps[type] = new StepFields(); return(steps[type]); } case StepsType.Final: { steps[type] = new StepFinal(this); return(steps[type]); } } throw new NotSupportedException($"getStep: the type - `{type}` is not found."); }