Hi ViniciusGomesGonsalves,
Do you install VS2019 with Xamarin workload? The Xamarin workload will place a Xamarin.Offline.config file in C:\Program Files (x86)\NuGet\Config\ which sets C:\Microsoft\Xamarin\NuGet\ as one fallbackPackageFolders. Its content would look like this pic:
The build/restore process would check the existance of this folder C:\Microsoft\Xamarin\NuGet\ and throw the error message above if the folder is not found.
Here're two directions to resolve the issue depending on your scenario:
- If you're not developing Xamarin, just feel free to delete the unnecessary
Xamarin.Offline.config
file. - And if you're developing Xamarin, you can choose to create the missing folder manually or modify the Xamarin.Offline.config file to make it reference correct path of the Xamarin fallback folder.
Note:
- Normally these paths and folders are in
C:
drive, but your error message indicates it's trying to find the folder inD:
drive. This may affect the behavior. - Here's one detailed description about the Xamarin config. link: {https://stackoverflow.com/questions/58419386/vs2017-attempts-to-save-nuget-packages-into-a-xamarin-folder-why/58424383#58424383}
Best Regards,
Dylan