Hello,
Vusual Studio 2022 on Windows.
For Visual Studio, this long path error is expected because VS cannot support long paths. You could refer to Long Path Support in Visual Studio #2323 for more detailed information.
For this problem, you can refer to Maui - iOS push notification cannot be set up - Could not find a part of the path (Path too long) #630 and operate it manually through the dotnet command line tool.
Try clearing your local nuget cache and run a
nuget restore
from the command line (not using Visual Studio).
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.