Bug 60331 - Saving and Updating a layout XML file prevents building the project until background task is finished executing.
Summary: Saving and Updating a layout XML file prevents building the project until bac...
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 8.0 (15.4)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: dean.ellis
Depends on:
Reported: 2017-10-23 17:57 UTC by Jon Douglas [MSFT]
Modified: 2017-10-23 18:17 UTC (History)
1 user (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 for Bug 60331 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jon Douglas [MSFT] 2017-10-23 17:57:42 UTC
## Description:

When saving/updating a layout XML file, it seems that a task is fired to the background to regenerate the resource.designer.cs file. However there is no indication to the user that this task is running or needs to be completed in order to build the project. Instead it will just fail the build with other errors instead. I believe this is happening around the following tasks/targets:



Because this occurs in 15.4 and 15.5, I would suspect that it's an issue with design-time builds as this occurs after modifying a layout resource which is a project file.

## Actual Results:

Build Fails with the follow error messages from other projects

1>------ Build started: Project: Utilities, Configuration: Debug Any CPU ------
2>Project 'Html.Core.PCL' is not up to date. Input file 'c:\users\dougl\downloads\msnapps.win\msnapps.html2xaml\html.core.pcl\core\classify\classifiercontext.cs' is modified after output file ''.
2>------ Build started: Project: Html.Core.PCL, Configuration: Debug Any CPU ------
3>Project 'Services.PCL' is not up to date. Input file 'c:\users\dougl\downloads\msnapps.win\private\common\services.pcl\ads\models\ad.cs' is modified after output file ''.

If you wait around 10+ seconds, you can build the project just fine.

## Expected Results:

The build should either be able to fire off and start building, or the ability to build the project should be greyed out and indicated that a background task needs to finish before building.

## Version Information:

Visual Studio 2017

15.4 - Xamarin.Android
15.5 - Xamarin.Android