Пример #1
0
 /// <param name="msbuild">Instance of MSBuild core</param>
 public Component(IMSBuild msbuild)
     : this()
 {
     env          = msbuild.Env;
     uvariable    = msbuild.UVariable;
     this.msbuild = msbuild;
 }
Пример #2
0
 /// <param name="script">Instance of SBE-Scripts core</param>
 /// <param name="msbuild">Instance of MSBuild core</param>
 public Component(ISBEScript script, IMSBuild msbuild)
     : this()
 {
     env             = script.Bootloader.Env;
     uvariable       = script.Bootloader.UVariable;
     this.script     = script;
     this.msbuild    = msbuild;
 }
Пример #3
0
 /// <summary>
 /// Constructs the builder
 /// </summary>
 /// <param name="slnBuilder">Sub task building the solution file, used as a dependency</param>
 /// <param name="slnPath">Path of the generated solution file</param>
 /// <param name="targetRoot">Target directory</param>
 /// <param name="msbuild">The MSBuild implementation to use</param>
 public MSBuildRunner(SlnBuilder slnBuilder, TargetRelativePath slnPath,
                      [TargetRoot] IFileSystemDirectory targetRoot, IMSBuild msbuild)
 {
     this.slnBuilder = slnBuilder;
     this.slnPath    = slnPath;
     this.targetRoot = targetRoot;
     this.msbuild    = msbuild;
 }
Пример #4
0
 /// <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(IMSBuild msbuild = null, EvalType type = EvalType.ArgStringD)
 {
     //if(msbuild == null) {
     //    throw new InvalidArgumentException("PM: The `msbuild` argument cannot be null");
     //}
     this.msbuild = msbuild;
     teval        = type;
 }
Пример #5
0
 /// <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(IMSBuild msbuild = null, EvalType type = EvalType.ArgStringD)
 {
     //if(msbuild == null) {
     //    throw new InvalidArgumentException("PM: The `msbuild` argument cannot be null");
     //}
     this.msbuild    = msbuild;
     teval           = type;
 }
Пример #6
0
 /// <summary>
 /// Constructs the builder
 /// </summary>
 /// <param name="slnBuilder">Sub task building the solution file, used as a dependency</param>
 /// <param name="slnPath">Path of the generated solution file</param>
 /// <param name="version">MSBuild version to use</param>
 /// <param name="targetRoot">Target directory</param>
 /// <param name="msbuildFactory">Factory to get the MSBuild implementation to use</param>
 public MSBuildRunner(SlnBuilder slnBuilder, TargetRelativePath slnPath, MSBuildVersion version,
                      [TargetRoot] IFileSystemDirectory targetRoot, IMSBuildFactory msbuildFactory)
 {
     this.slnBuilder = slnBuilder;
     this.slnPath    = slnPath;
     this.targetRoot = targetRoot;
     msbuild         = msbuildFactory.CreateMSBuild(version);
 }
Пример #7
0
 public SolutionRunner(ICmdLine cmdLine, IHelpDisplay helpDisplay, IFileSystem fileSystem, IMSBuild msBuild, ILogger logger, IProcessRunner processRunner, INuGet nuGet)
 {
     _cmdLine = cmdLine;
     _helpDisplay = helpDisplay;
     _fileSystem = fileSystem;
     _msBuild = msBuild;
     _logger = logger;
     _processRunner = processRunner;
     _nuGet = nuGet;
 }
Пример #8
0
            public ToolContext(IEnvironment env)
            {
                Log.Trace("Initialization of the clean context for testing.");

                bootloader = new Bootloader(env, uvariable);
                bootloader.register();

                inspector = new Inspector(bootloader);
                script    = new Script(bootloader);
                msbuild   = new MSBuild.Parser(env, uvariable);
            }
Пример #9
0
        /// <param name="env">Used environment</param>
        /// <param name="script">Used SBE-Scripts</param>
        /// <param name="msbuild">Used MSBuild</param>
        public Command(IEnvironment env, ISBEScript script, IMSBuild 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);
        }
Пример #10
0
        /// <param name="env">Used environment</param>
        /// <param name="script">Used SBE-Scripts</param>
        /// <param name="msbuild">Used MSBuild</param>
        public Command(IEnvironment env, ISBEScript script, IMSBuild 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);
        }
Пример #11
0
 public Expression(ISBEScript script, IMSBuild msbuild)
 {
     this.script  = script;
     this.msbuild = msbuild;
 }
Пример #12
0
 public Expression(ISBEScript script, IMSBuild msbuild)
 {
     this.script     = script;
     this.msbuild    = msbuild;
 }
Пример #13
0
 public DomParser(IInspector inspector, IMSBuild msbuild = null)
 {
     Inspector = inspector;
     MSBuild   = msbuild;
 }
Пример #14
0
            public ToolContext(IEnvironment env)
            {
                Log.Trace("Initialization of the clean context for testing.");

                bootloader = new Bootloader(env, uvariable);
                bootloader.register();

                inspector   = new Inspector(bootloader);
                script      = new Script(bootloader);
                msbuild     = new MSBuild.Parser(env, uvariable);
            }
Пример #15
0
 public ConditionalExpression(ConditionComponent cond, ISBEScript script, IMSBuild msbuild)
     : base(script, msbuild)
 {
     this.cond = cond;
 }
Пример #16
0
 /// <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, IMSBuild msbuild = null, EvalType type = EvalType.ArgStringD /*| EvalType.RightOperandStd*/)
     : this(msbuild, type)
 {
     detect(raw);
 }
Пример #17
0
 public DomParser(IInspector inspector, IMSBuild msbuild = null)
 {
     Inspector   = inspector;
     MSBuild     = msbuild;
 }
Пример #18
0
 public ConditionalExpression(ConditionComponent cond, ISBEScript script, IMSBuild msbuild)
     : base(script, msbuild)
 {
     this.cond = cond;
 }
Пример #19
0
 protected void init(IEnvironment env, IUserVariable uvariable)
 {
     this.env       = env;
     this.uvariable = uvariable;
     msbuild        = new MSBuild.Parser(env, uvariable);
 }
Пример #20
0
 /// <summary>
 /// Updating model of the data for code completion
 /// </summary>
 /// <param name="inspector"></param>
 /// <param name="msbuild"></param>
 public void codeCompletionInit(IInspector inspector, IMSBuild msbuild = null)
 {
     dom = new DomParser(inspector, msbuild);
     Log.Trace("Code completion has been initialized for '{0}'", Name);
 }
Пример #21
0
 protected void init(IEnvironment env, IUserVariable uvariable)
 {
     this.env        = env;
     this.uvariable  = uvariable;
     msbuild         = new MSBuild.Parser(env, uvariable);
 }
Пример #22
0
 /// <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, IMSBuild msbuild = null, EvalType type = EvalType.ArgStringD /*| EvalType.RightOperandStd*/)
     : this(msbuild, type)
 {
     detect(raw);
 }
Пример #23
0
 /// <summary>
 /// Updating model of the data for code completion
 /// </summary>
 /// <param name="inspector"></param>
 /// <param name="msbuild"></param>
 public void codeCompletionInit(IInspector inspector, IMSBuild msbuild = null)
 {
     dom = new DomParser(inspector, msbuild);
     Log.Trace("Code completion has been initialized for '{0}'", Name);
 }
Пример #24
0
 /// <param name="script">Instance of SBE-Scripts core</param>
 /// <param name="msbuild">Instance of MSBuild core</param>
 public Component(ISBEScript script, IMSBuild msbuild)
     : this(msbuild)
 {
     this.script = script;
 }