Bug 36019 - Extend MSBuild Tasks to support ICancelable to allow early Cancellations/Stops of Running Builds
Summary: Extend MSBuild Tasks to support ICancelable to allow early Cancellations/Stop...
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 6.0.0
Hardware: PC Windows
: High enhancement
Target Milestone: master
Assignee: dean.ellis
Depends on:
Reported: 2015-11-18 14:05 UTC by Jon Douglas [MSFT]
Modified: 2017-07-13 19:57 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jon Douglas [MSFT] 2015-11-18 14:05:17 UTC

Currently MSBuild tasks need to complete before it's possible to "Cancel/Stop" a running build. This is most likely because most of the respective Tasks do not support ICancelable. This feature request is to include support for ICancelable so a build can be stopped earlier than waiting for certain Tasks to be run.


If you have a larger Android solution and you start a build and forget a few lines of code or need to stop it for another reason, you have to wait until the current Task is finished completing. Because of this it can take anywhere from 30-90 seconds to complete. Ideally one should be able to just stop the Build at any time and have it stop within a decent time-frame(5-10s).


1. Take a larger solution from either a Prebuilt-App or MonoDroid-Samples



2. Run the Project

3. Attempt to Stop the Build

4. Time how long it takes until you can actually Cancel/Stop the Build
Comment 1 Cody Beyer (MSFT) 2017-07-13 19:57:18 UTC
I can't reproduce this any longer. It seems that it responds now as expected.