MAUI VS2022 NUGET BarcodeScanner.Mobile.Maui 8.0.40.1 error
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”的一部分。
Your folder path is too long.
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
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...
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.
If this didnt help then do this Manual workaround
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
- close visual studio and manual remove bin and obj folder
- open cmd to build the app first
dotnet restore
dotnet build
- then it should good to run with visual studio