dotnet / android-libraries

.NET for Android bindings for Google's libraries, such as AndroidX, GooglePlayServices, Firebase, and MLKit and their 3rd party dependency libraries.
MIT License
233 stars 50 forks source link

[tests] Add `--no-restore` to `dotnet` invocations for better performance. #1040

Open jpobst opened 2 weeks ago

jpobst commented 2 weeks ago

Calling dotnet new <template> and dotnet add nuget <package> implicitly does a NuGet restore before returning.

However, after we get the test set up using these commands we call dotnet build which also does a NuGet restore.

Improve performance by opting out of these initial restores and only doing the one at build time.