dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.92k stars 526 forks source link

[tests] update MSBuild performance tests #9231

Closed jonathanpeppers closed 2 weeks ago

jonathanpeppers commented 1 month ago

It's been a while, since I went through and refactored these tests. After seeing a couple build-time regressions in .NET 9, I think it's overdue.

Removing test cases that likely won't catch an issue:

Build_From_Clean_DontIncludeRestore would likely catch similar issues as these two, anyway.

Build_XAML_Change_RefAssembly now uses a net8.0 class library where $(ProduceReferenceAssembly) defaults to true.

Removed a 500ms addition, that only made sense when we supported both "classic" Xamarin.Android and .NET 6+ projects.

Update the time thresholds to be a bit shorter, in general.