Xamarin-ExpenseAnalysis icon indicating copy to clipboard operation
Xamarin-ExpenseAnalysis copied to clipboard

Unable to build the application in windows using visual 2019

Open rsrini83 opened this issue 4 years ago • 6 comments

Unable to deploy to android or simulator with the latest code. Getting below exception

image

Severity Code Description Project File Line Suppression State Error XARDF7023: System.IO.DirectoryNotFoundException: Could not find a part of the path 'AlertDialog_IDialogInterfaceOnMultiChoiceClickListenerImplementor.class'. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Xamarin.Android.Tasks.RemoveDirFixed.RunTask() 0 Error XARDF7004: System.ArgumentException: Illegal characters in path. at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Xamarin.Android.Tasks.RemoveDirFixed.RunTask() 0

rsrini83 avatar Apr 09 '20 16:04 rsrini83

Hi @rsrini83

Thank you for contacting us.

We have tried to reproduce the reported issue "Unable to build the application in windows using visual 2019" and we were unable to reproduce the reported issue. We could deploy and run the sample without any issues. Can you clean and rebuild the project once again?

Please let us know if the issue still exists from your end even after rebuilding the application.

Thanks, Rathanakumar S

RathanakumarSekar avatar Apr 13 '20 10:04 RathanakumarSekar

Hi @RathanakumarSekar ,

Thanks for your reply. Yes, i had done multiple times cleaning the solution and trying to deploy. However, i'm always hitting the same error.

My environment is, Visual Studio: 2019 Xamarin.Forms; 3.6.0.344457 (did not modify anything, same as in the Gitcode). Android: Default emulator, Nexus 10 Pie 9.0 - API 28

rsrini83 avatar Apr 13 '20 11:04 rsrini83

Hi rsrini83,

Thanks for your update.

We have checked the reported issue "Unable to build the application " in Visual Studio 2019 Windows 16.3.8 and Mac 8.5 versions. Still, we were unable to reproduce the reported issue. So, could you please provide the version details about your Visual Studio IDE. It will help us to provide an appropriate solution on this.

Please let us know if you need any further assistance.

Thanks, Rathanakumar S

RathanakumarSekar avatar Apr 22 '20 04:04 RathanakumarSekar

Hi Rathankumar,

Here are the details you asked,

image

Let me know if you need any further information.

--Srinu

Prabhuss avatar Apr 22 '20 06:04 Prabhuss

Hi @Prabhuss

We have ensured the same with the provided configured VS but that is working fine at our end. Any further details to replicate the issue then please share to us. Please clear the cache and bin,obj and close the application and reopen it

mrhemalatha avatar May 08 '20 12:05 mrhemalatha

Hi @rsrini83,

Try moving your project to a simpler path like c:\Proj01, this problem could be because of the project path as you got this error: Error XARDF7004: System.ArgumentException: Invalid characters in path. I got here because I got similar error messages, shortened my project path, removed spaces in the folder name and worked. I hope this works for you. Thanks for sharing

jmbigi avatar Feb 28 '23 14:02 jmbigi