-
Notifications
You must be signed in to change notification settings - Fork 564
Closed
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.Area: PerformanceIssues with performance.Issues with performance.
Milestone
Description
Android framework version
net10.0-android (Preview)
Affected platform version
.NET 10
Description
I was testing another issue and noticed this!
By default, we allow 10 retries with a 1 second sleep:
For this case, we are working with a temp file and so it's really "best" effort to delete it.
Let's introduce an MSBuild task parameter to configure retries to <RemoveDirFixed/>, and set it to 3 for cases where we are deleting temp files and have ContinueOnError="WarnAndContinue".
android/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets
Lines 1325 to 1329 in 209d846
| <!-- Delete our temporary directory --> | |
| <RemoveDirFixed | |
| Directories="$(ResgenTemporaryDirectory)" | |
| ContinueOnError="WarnAndContinue" | |
| /> |
We could add new parameters that if set replaces these values:
android/src/Xamarin.Android.Build.Tasks/Tasks/RemoveDirFixed.cs
Lines 59 to 60 in 648f791
| int attempts = Files.GetFileWriteRetryAttempts (); | |
| int delay = Files.GetFileWriteRetryDelay (); |
Steps to Reproduce
dotnet new maui-blazor-webin VS- F5
Did you find any workaround?
No response
Relevant log output
Copilot
Metadata
Metadata
Assignees
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.Area: PerformanceIssues with performance.Issues with performance.