I've had a problem similar to this before with TFS on other projects. It
is, IMHO, a more problem with TFS and the way it insists on flagging files
as read-only.

What I've done is checkout the files that will be generated from TFS,
perform the build, then check the files back in to TFS.  Depending on your
needs/requirements you could just discard the generated file too.

Kind of silly, but it does work.

On Mon, Jun 25, 2012 at 10:42 PM, Sellec <echelo...@gmail.com> wrote:

> 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
>



-- 
http://www.opgenorth.net
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to