Bug 51432 - iOS templates fail to build with "(SayHello task) error : Collection was modified; enumeration operation may not execute."
Summary: iOS templates fail to build with "(SayHello task) error : Collection was modi...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: Normal normal
Target Milestone: 4.3.1 (C9SR1)
Assignee: Bugzilla
Depends on:
Reported: 2017-01-11 22:32 UTC by Ben Beckley
Modified: 2017-03-02 15:18 UTC (History)
5 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 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 Ben Beckley 2017-01-11 22:32:05 UTC
This error occurred three times in an automation run where we build all of iOS templates. This appears to be a transient failure, but nonetheless is an issue.

>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5): error : Collection was modified; enumeration operation may not execute.
>  Output Property: MtouchTargetsEnabled=False (TaskId:8)
>  Output Property: IsMacEnabled=False (TaskId:8)
>Done executing task "SayHello" -- FAILED. (TaskId:8)
>Done building target "_SayHello" in project "SpriteKitGameiPhoneApp.csproj" -- FAILED.: (TargetId:8)

Affected templates:
SpriteKit Game (iPhone)
OpenGL Game (iPad)
SpriteKit Game (iPad)

Reproduction Steps:
1: Select menu File > New > Project...
2: Select category Templates > Visual C# > iOS > iPhone
3: Select template SpriteKit Game (iPhone)
4: Set project name to SpriteKitGameiPhoneApp
5: Set solution name to SpriteKitGameiPhoneAppSln
6: Set location to C:\TestResults\48809a62\SpriteKitGameiPhoneApp\Temp
7: Click button 'OK'
8: Wait for connection with status: Successfully connected to the Mac!
9: Select menu Build > Build Solution

XVS: (cycle9/48809a6)