Every time is the same nightmare, I have my app that works fine.
Today I just need to remove a package. Like a lot of time, it was a mess.
I remove the plugin.toast. Android project stop to build, with a lot of errors, in xml files.
Tried everything. Remove xamarin forms package, changing target framework, delete nuget cache, I don't want to be boring.
But now, the project simply doesn't build. Frustrating.
Now the error is:
Severity Code Description Project File Line Suppression State
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ....\packages\Xamarin.Android.Support.Annotations.26.1.0.1\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets. Timeout.Android
Obviously if I restore packages Visual studio tell me:
All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.1067208
========== Finished ==========
The problem is that I changed the target framework reverting it back to V7, but for a reason that I don't know the proj file of Android was not cleaned, and it contains some directory that will never be satisfied making the project broken.
I was able to solve this specific problem, after some hours of temptative, manually editing the csproj file removing the references that was impossibile to satisfy. But I'm not really confident about the depencies of the other packages, keeping them aligned and safe it's responsibility of nuget!
And in my experience, EVERY time I have to update the packages of a complex solution, something is wrong, and I have to loose a lot of hours trying to solve problems that was created from the updater itself.
I think that the bigger problem is related to the Android support version packages, that when was not updated correctly broke the project file, but I have the feeling that something was not working properly in this process and this is really dangerous for every developer that want to assure a seriously productivity for its work.