public PropertyCheckFrm(IEnvironment env) { _parser = MSBuild.MakeEvaluator(env); InitializeComponent(); Icon = Resource.Package_32; }
/// <param name="soba">Used SobaScript engine.</param> /// <param name="evm">E-MSBuild engine.</param> /// <param name="uvars">Varhead container.</param> public ComponentAbstract(ISobaScript soba, IEvMSBuild evm, IUVars uvars) : this() { this.soba = soba ?? throw new ArgumentNullException(nameof(soba)); this.emsbuild = evm ?? throw new ArgumentNullException(nameof(evm)); this.uvars = uvars ?? throw new ArgumentNullException(nameof(uvars)); }
/// <param name="emsbuild">To evaluate data with MSBuild engine where it's allowed.</param> /// <param name="type">Allowed types of evaluation with MSBuild.</param> public PM(IEvMSBuild emsbuild = null, EvalType type = EvalType.ArgStringD) { //if(msbuild == null) { // throw new InvalidArgumentException("PM: The `msbuild` argument cannot be null"); //} this.emsbuild = emsbuild; teval = type; }
/// <summary> /// To initialize properties by default for project. /// </summary> protected virtual void initPropByDefault(IEvMSBuild msbuild) { IAppSettings app = AppSettings._; const string _PFX = AppSettings.APP_NAME_SHORT; msbuild.SetGlobalProperty(AppSettings.APP_NAME, vsSBE.Version.S_NUM_REV); msbuild.SetGlobalProperty($"{_PFX}_CommonPath", app.CommonPath); msbuild.SetGlobalProperty($"{_PFX}_LibPath", app.LibPath); msbuild.SetGlobalProperty($"{_PFX}_WorkPath", app.WorkPath); }
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="env">Used environment</param> /// <param name="script">Used SBE-Scripts</param> /// <param name="msbuild">Used MSBuild</param> public Command(IEnvironment env, ISobaScript script, IEvMSBuild msbuild) { Env = env; SBEScript = script; MSBuild = msbuild; actions[ModeType.Operation] = new ActionOperation(this); actions[ModeType.Interpreter] = new ActionInterpreter(this); actions[ModeType.Script] = new ActionScript(this); actions[ModeType.File] = new ActionFile(this); actions[ModeType.Targets] = new ActionTargets(this); actions[ModeType.CSharp] = new ActionCSharp(this); }
private static IEvMSBuild PostAction(IEnvironment env, IEvMSBuild instance) { //TODO: to CoreCommandType instance.GlobalPropertyChanged += (object sender, PropertyArgs e) => env?.CoreCmdSender?.fire(GetRawCommand(new[] { e.Removed ? "property.del" : "property.set", e.name, e.value })); return(instance); }
/// <param name="parser"></param> public StepStruct(IEvMSBuild parser) : this() { try { namspace = parser.GetPropValue(PropertyNames.PRJ_NAMESPACE); } catch (Exception ex) { Log.Debug("Wizard-Version: RootNamespace failed - `{0}`", ex.Message); } if (namspace == PropertyNames.UNDEFINED) { namspace = "MyNamespace"; } }
/// <summary> /// Updating model of the data for code completion /// </summary> /// <param name="inspector"></param> /// <param name="msbuild"></param> public void codeCompletionInit(IInspector inspector, IEvMSBuild msbuild = null) { dom = new SbMapper(inspector, msbuild); Log.Trace("Code completion has been initialized for '{0}'", Name); }
public ExpressionAbstract(ISobaScript soba, IEvMSBuild emsbuild) { this.soba = soba; this.emsbuild = emsbuild; }
/// <param name="raw">Initial raw data.</param> /// <param name="msbuild">To evaluate data with MSBuild engine where it's allowed.</param> /// <param name="type">Allowed types of evaluation with MSBuild.</param> public PM(string raw, IEvMSBuild msbuild = null, EvalType type = EvalType.ArgStringD /*| EvalType.RightOperandStd*/) : this(msbuild, type) { Detect(raw); }
public ConditionalExpression(ConditionComponent cond, ISobaScript script, IEvMSBuild msbuild) : base(script, msbuild) { this.cond = cond; }
public SbMapper(IInspector inspector, IEvMSBuild emsbuild = null) { Inspector = inspector ?? throw new ArgumentNullException(nameof(inspector)); EvMSBuild = emsbuild; }