Description
I've seen a few times in test leg failures a build issue with a locked files. Below is one recent example. This is causing PR instability.
/Users/runner/work/1/s/.dotnet/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error : The process cannot access the file '/Users/runner/work/1/s/artifacts/bin/Microsoft.DotNet.PackageInstall.Tests/Release/TestAssetLocalNugetFeed/global.tool.console.demo.1.0.4.nupkg' because it is being used by another process. [/Users/runner/work/1/s/src/Tests/Microsoft.DotNet.PackageInstall.Tests/SampleGlobalTool/consoledemo.csproj]
##[error].dotnet/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) The process cannot access the file '/Users/runner/work/1/s/artifacts/bin/Microsoft.DotNet.PackageInstall.Tests/Release/TestAssetLocalNugetFeed/global.tool.console.demo.1.0.4.nupkg' because it is being used by another process.