BarcodeScanner.Mobile icon indicating copy to clipboard operation
BarcodeScanner.Mobile copied to clipboard

MAUI VS2022 NUGET BarcodeScanner.Mobile.Maui 8.0.40.1 error

Open tjwangzhen2 opened this issue 11 months ago • 6 comments

Describe the bug error Unable to find path“C:\Users\tjwan.nuget\packages\adame.firebase.ios.installations\10.24.0.2\lib\net6.0-ios16.1\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64\FirebaseInstallations.framework\FirebaseInstallations_Privacy.bundle\PrivacyInfo.xcprivacy”的一部分。

tjwangzhen2 avatar Feb 11 '25 06:02 tjwangzhen2

Your folder path is too long.

mos379 avatar Feb 11 '25 07:02 mos379

Your folder path is too long.

Thank you very much for your reply But it didn't solve my problem I have no problem installing other packages The installation path of the package is specified by VS2022 itself, and I have not changed it

tjwangzhen2 avatar Feb 14 '25 08:02 tjwangzhen2

if you change your default nuget packeage folder for example by setting the envrionment variable NUGET_PACKAGES and use D:\Dev\packages then it most likely will work...

mos379 avatar Feb 14 '25 11:02 mos379

Modify the Registry Press Win + R, type regedit, and hit Enter. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem Find LongPathsEnabled. If it does not exist, create a new DWORD (32-bit) Value and name it LongPathsEnabled. Double-click LongPathsEnabled and set its Value data to 1. Restart your PC.

mos379 avatar Mar 18 '25 11:03 mos379

If this didnt help then do this Manual workaround

mos379 avatar Mar 18 '25 15:03 mos379

Modify the Registry Press Win + R, type regedit, and hit Enter. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem Find LongPathsEnabled. If it does not exist, create a new DWORD (32-bit) Value and name it LongPathsEnabled. Double-click LongPathsEnabled and set its Value data to 1. Restart your PC.

In addition to this, visual studio has it own problem which would also need to

  1. close visual studio and manual remove bin and obj folder
  2. open cmd to build the app first
dotnet restore
dotnet build
  1. then it should good to run with visual studio

JimmyPun610 avatar Mar 18 '25 21:03 JimmyPun610