Exemplo n.º 1
0
        public override bool Execute()
        {
            int num = base.Execute() ? 1 : 0;

            VCTaskNativeMethods.CloseHandle(this.cancelEvent);
            return(num != 0);
        }
Exemplo n.º 2
0
        public override bool Execute()
        {
            bool flag = base.Execute();

            VCTaskNativeMethods.CloseHandle(this.cancelEvent);
            this.PrintMessage(this.ParseLine(null), base.StandardOutputImportanceToUse);
            return(flag);
        }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public override void Cancel()
 {
     VCTaskNativeMethods.SetEvent(this.cancelEvent);
 }
Exemplo n.º 6
0
 public override void Cancel()
 {
     VCTaskNativeMethods.SetEvent(this.cancelEvent);
     this.PrintMessage(this.ParseLine(null), base.StandardOutputImportanceToUse);
 }