Bug 19657 - Build fails when Resource.Designer.cs is not checked out
Summary: Build fails when Resource.Designer.cs is not checked out
Status: RESOLVED DUPLICATE of bug 5870
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.12.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-05-09 16:22 UTC by rwakelan
Modified: 2014-05-09 16:30 UTC (History)
1 user (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 or GitHub 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 rwakelan 2014-05-09 16:22:07 UTC
I have recently gotten my Android app to the point where it was added to TFS source control.  The first time I built the project after adding it to source control, the following error came up:

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, Boolean checkHost)
   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>d__20.MoveNext()

If I check out the file, the build completes successfully.

Environment information:

Visual Studio Professional 2012 Version 11.0.60610.01 Update 3
Xamarin for Visual Studio
Comment 1 Jonathan Pryor 2014-05-09 16:30:17 UTC

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