D
Daan
We are using Visual Studio 2005 to create a .NET Compact Framework 2.0
application. In our solution, we have several projects. Sometimes, when
trying to build the solution, we get the following error:
The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: Collection was modified; enumeration
operation may not execute.
at
Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain()
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
taskClassWasFound)
This error can occur at any of the projects within the solution, and it
seems arbitrary at which of the projects it occurs. Restarting VS is
usually the solution, while sometimes a complete reboot of the PC is
necessary to fix it.
Has anyone encountered the same problem of can someone point us to a
solution? Thanks for any help,
application. In our solution, we have several projects. Sometimes, when
trying to build the solution, we get the following error:
The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: Collection was modified; enumeration
operation may not execute.
at
Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain()
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
taskClassWasFound)
This error can occur at any of the projects within the solution, and it
seems arbitrary at which of the projects it occurs. Restarting VS is
usually the solution, while sometimes a complete reboot of the PC is
necessary to fix it.
Has anyone encountered the same problem of can someone point us to a
solution? Thanks for any help,