I've been working around this issue for some time. Since the designer file is generated on every build, I don't version the Resource.Designer.cs file.
Workaround steps: close the solution, open the Source Control Explorer, and delete the Resource.Designer.cs file from there. Then, create a new file with the same name (Resource.Designer.cs) in Windows Explorer and re-open your solution. You will still be able to build, but it won't fail if you don't have Resource.Designer.cs checked out in TFS since it's not versioned in TFS anymore. I've been meaning to report this issue, but I found this workaround and haven’t gotten around to filing a bug for it. It would be nice if this was fixed, however. Thank you, Chris Tossing Software Engineer G4S Technology Software Solutions LLC Direct Dial: +1 (781) 457-0779 Cell: +1 (847) 942-0359 chris.toss...@usa.g4s.com www.1f.com 21 North Avenue, Burlington, Massachusetts 01803 USA Please consider the environment before printing this email -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Sellec Sent: Tuesday, June 26, 2012 12:43 AM To: monodroid@lists.ximian.com Subject: [mono-android] Issue with Team Foundation server in VS 2010 SP1 Hi. Im new in Mono, but see a little bug in VS when using TFS 2010. When im trying to build Mono for Android Application project, i see an error in output screen: C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: непредвиденная ошибка при выполнении задачи "CopyIfChanged". C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: System.UnauthorizedAccessException: Отказано в доступе по пути "Resources\Resource.Designer.cs". C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в Xamarin.Android.Tasks.CopyIfChanged.Execute() C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) Looks like problem in Resource.Designer.cs, becouse this file is read-only when its state is check-out. When i check it in to change, problem is disappears. Correct way is to check in this file automatically when it changes, i think. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Issue-with-Team-Foundation-server-in-VS-2010-SP1-tp5710524.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid The details of this company are as follows: G4S Technology Limited, Registered Office: Challenge House, International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338. This communication may contain information which is confidential, personal and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited. Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them. Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity. This e-mail has been scanned for all viruses by MessageLabs. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid