使用Xamarin Studio Mac或Visual Studio Mac可以很好地构建这个Xamarin.Forms.Android项目。 为了使用Visual Studio 2015 for PC整合所有版本,我可以成功为iOS,WinPhone 8.1和UWP构建相同的代码库。
android项目是唯一失败的项目。我已经清理了obj / bin目录。
错误:
The "ConvertResourcesCases" task failed unexpectedly.
System.UnauthorizedAccessException: Access to the path '[fullpath]\Droid\obj\Debug\res\values\styles.xml.tmp' 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.Tools.Files.CopyIfChanged(String source, String destination)
at Xamarin.Android.Tasks.MonoAndroidHelper.CleanBOM(String filePath)
at Xamarin.Android.Tasks.ConvertResourcesCases.FixupResources(ITaskItem item, Dictionary`2 acwMap)
at Xamarin.Android.Tasks.ConvertResourcesCases.FixupResources(Dictionary`2 acwMap)
at Xamarin.Android.Tasks.ConvertResourcesCases.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() EmployeePortal.Droid