Describe the bug
Trying to update Swashbuckle.AspNetCore from 11.0 preview.4 to preview.5 (domaindrivendev/Swashbuckle.AspNetCore#3988), I'm consistently getting MSB4181 errors on Windows in CI (12 failed attempts in a row).
We already don't build in parallel, so that's not a simple one-line fix/workaround either.
I don't get this problem locally on Windows 11, which also doesn't help 😅
The problem also doesn't present with 10.0.301.
Steps to reproduce
Attempt to build domaindrivendev/Swashbuckle.AspNetCore@d762b65 on Windows.
Expected behavior
The solution builds.
Actual behavior
The solution fails to build. For example:
D:\tools\dotnet\sdk\11.0.100-preview.5.26302.115\Microsoft.Common.CurrentVersion.targets(4919,5): warning MSB3026: Could not copy "D:\a\Swashbuckle.AspNetCore\Swashbuckle.AspNetCore\artifacts\obj\Swashbuckle.AspNetCore.ReDoc\release_net11.0\Swashbuckle.AspNetCore.ReDoc.dll" to "D:\a\Swashbuckle.AspNetCore\Swashbuckle.AspNetCore\artifacts\bin\Swashbuckle.AspNetCore.ReDoc\release_net11.0\Swashbuckle.AspNetCore.ReDoc.dll". Beginning retry 1 in 1000ms. The process cannot access the file 'D:\a\Swashbuckle.AspNetCore\Swashbuckle.AspNetCore\artifacts\bin\Swashbuckle.AspNetCore.ReDoc\release_net11.0\Swashbuckle.AspNetCore.ReDoc.dll' because it is being used by another process. The file is locked by: ".NET Host (3016)" [D:\a\Swashbuckle.AspNetCore\Swashbuckle.AspNetCore\src\Swashbuckle.AspNetCore.ReDoc\Swashbuckle.AspNetCore.ReDoc.csproj::TargetFramework=net11.0]
Is this a regression?
Yes.
Are there any workarounds?
No response
dotnet --info output
IDE version
No response
Other details
No response
Describe the bug
Trying to update Swashbuckle.AspNetCore from 11.0 preview.4 to preview.5 (domaindrivendev/Swashbuckle.AspNetCore#3988), I'm consistently getting MSB4181 errors on Windows in CI (12 failed attempts in a row).
We already don't build in parallel, so that's not a simple one-line fix/workaround either.
I don't get this problem locally on Windows 11, which also doesn't help 😅
The problem also doesn't present with 10.0.301.
Steps to reproduce
Attempt to build domaindrivendev/Swashbuckle.AspNetCore@d762b65 on Windows.
Expected behavior
The solution builds.
Actual behavior
The solution fails to build. For example:
Is this a regression?
Yes.
Are there any workarounds?
No response
dotnet --info output
IDE version
No response
Other details
No response