コード例 #1
0
ファイル: VCToolTask.cs プロジェクト: thomas-dee/vs-yocto
        public override bool Execute()
        {
            int num = base.Execute() ? 1 : 0;

            VCTaskNativeMethods.CloseHandle(this.cancelEvent);
            return(num != 0);
        }
コード例 #2
0
        public override bool Execute()
        {
            bool flag = base.Execute();

            VCTaskNativeMethods.CloseHandle(this.cancelEvent);
            this.PrintMessage(this.ParseLine(null), base.StandardOutputImportanceToUse);
            return(flag);
        }
コード例 #3
0
ファイル: VCToolTask.cs プロジェクト: thomas-dee/vs-yocto
 protected VCToolTask(ResourceManager taskResources)
     : base(taskResources)
 {
     this.cancelEventName              = "MSBuildConsole_CancelEvent" + Guid.NewGuid().ToString("N");
     this.cancelEvent                  = VCTaskNativeMethods.CreateEventW(IntPtr.Zero, false, false, this.cancelEventName);
     this.logPrivate                   = new TaskLoggingHelper((ITask)this);
     this.logPrivate.TaskResources     = AssemblyResources.PrimaryResources;
     this.logPrivate.HelpKeywordPrefix = "MSBuild.";
     this.IgnoreUnknownSwitchValues    = false;
 }
コード例 #4
0
 protected VCToolTask(ResourceManager taskResources) : base(taskResources)
 {
     this.activeToolSwitchesValues = new Dictionary <string, ToolSwitch>();
     this.activeToolSwitches       = new Dictionary <string, ToolSwitch>(StringComparer.OrdinalIgnoreCase);
     this.values                       = new Dictionary <string, Dictionary <string, string> >(StringComparer.OrdinalIgnoreCase);
     this.additionalOptions            = string.Empty;
     this.prefix                       = '/';
     this.EnableErrorListRegex         = true;
     this.errorListRegexList           = new List <Regex>();
     this.errorListRegexListExclusion  = new List <Regex>();
     this.lastMS                       = new MessageStruct();
     this.currentMS                    = new MessageStruct();
     this.cancelEventName              = "MSBuildConsole_CancelEvent" + Guid.NewGuid().ToString("N");
     this.cancelEvent                  = VCTaskNativeMethods.CreateEventW(IntPtr.Zero, false, false, this.cancelEventName);
     this.logPrivate                   = new TaskLoggingHelper(this);
     this.logPrivate.TaskResources     = Microsoft.Build.Shared.AssemblyResources.PrimaryResources;
     this.logPrivate.HelpKeywordPrefix = "MSBuild.";
     this.IgnoreUnknownSwitchValues    = false;
 }
コード例 #5
0
ファイル: VCToolTask.cs プロジェクト: thomas-dee/vs-yocto
 public override void Cancel()
 {
     VCTaskNativeMethods.SetEvent(this.cancelEvent);
 }
コード例 #6
0
 public override void Cancel()
 {
     VCTaskNativeMethods.SetEvent(this.cancelEvent);
     this.PrintMessage(this.ParseLine(null), base.StandardOutputImportanceToUse);
 }