Bug 6909 - When building a Mono for Android app with TFS installed, the build fails unless Resource.Designer.cs is explicitly checked out
Summary: When building a Mono for Android app with TFS installed, the build fails unle...
Status: RESOLVED DUPLICATE of bug 5870
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-09-04 19:43 UTC by Jake Hall
Modified: 2016-08-03 15:25 UTC (History)
6 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 Jake Hall 2012-09-04 19:43:57 UTC
If TFS is installed, when the Resource.Designer.cs file is modified in the build process, the build fails if the file is not explicitly checked out.  It would be better if this file was automatically checked out in the same way a file is if you edit it from VS.

The error given is:

Error	1	The "CopyIfChanged" task failed unexpectedly.
System.UnauthorizedAccessException: Access to the path 'Resources\Resource.Designer.cs' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at Xamarin.Android.Tasks.CopyIfChanged.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)	WebMD.Mobile.JustOneThing
Comment 1 Jonathan Pryor 2012-11-19 22:23:21 UTC

*** This bug has been marked as a duplicate of bug 5870 ***