"GenerateResource" task failed unexpectedly in .Net CF 2.0

G

Guest

I have a recurring issue with a .Net CF 2.0 project and whenever I modify a
form. I get this error during a compile. Shutting down and restarting the
IDE gets rid of the compile error. This is a real productivity killer.
Making any change to the Windows Form, like dropping a new label on the form
will cause the compile error.

Does anyone have a soution to this reproducible issue?

Thanks!
Rick

Error 1 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) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 1616 9 ItisPpc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top