Bug 21323 - Resource.Designer.cs does not check out automatically (TFS 2008)
Summary: Resource.Designer.cs does not check out automatically (TFS 2008)
Status: RESOLVED DUPLICATE of bug 5870
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.14.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-07-15 02:51 UTC by softlion
Modified: 2014-07-16 13:06 UTC (History)
2 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 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 softlion 2014-07-15 02:51:00 UTC
In TFS2008, the checkout state is determined by the "Read only" flag on project files.

When compiling an android project, if "resource.designer.cs" is not check out, the compilation fails with this message.
Instead of failing, the android xamarin plugin should check out the file first.

3>Using "CopyIfChanged" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
3>Task "CopyIfChanged" (TaskId:250)
3>  Task Parameter:Source=C:\Users\benjamin\AppData\Local\Temp\aezchevm.vl5\Resource.Designer.cs (TaskId:250)
3>  Task Parameter:Destination=Resources\Resource.Designer.cs (TaskId:250)
3>  CopyIfChanged Task (TaskId:250)
3>    Source: C:\Users\benjamin\AppData\Local\Temp\aezchevm.vl5\Resource.Designer.cs (TaskId:250)
3>    Destination: Resources\Resource.Designer.cs (TaskId:250)
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018: The "CopyIfChanged" task failed unexpectedly.
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018: System.UnauthorizedAccessException: Access to the path 'Resources\Resource.Designer.cs' is denied.
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018:    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018:    at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018:    at Xamarin.Android.Tasks.CopyIfChanged.Execute()
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(799,2): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
3>Done executing task "CopyIfChanged" -- FAILED. (TaskId:250)
Comment 1 Jonathan Pryor 2014-07-16 13:06:15 UTC

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