Turned on BuildRetry, seems like a reattempt could make it go away.
{
"ErrorMessage" : ["Downloading vswhere", " The process cannot access the file", "sdk.txt", "because it is being used by another process."],
"BuildRetry" : true,
"ExcludeConsoleLog" : false
}
Downloading vswhere
The process cannot access the file 'C:\Users\cloudtest\AppData\Local\Microsoft\VisualStudio\17.0_f1273583\sdk.txt' because it is being used by another process.
System.IO.IOException: The process cannot access the file 'C:\Users\cloudtest\AppData\Local\Microsoft\VisualStudio\17.0_f1273583\sdk.txt' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.PowerShell.Commands.FileSystemContentReaderWriter.CreateStreams(String filePath, String streamName, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, Encoding fileEncoding)
at Microsoft.PowerShell.Commands.FileSystemProvider.GetContentWriter(String path)
at EnablePreviewSdks, D:\a\_work\1\vmr\src\fsharp\eng\build.ps1: line 517
at <ScriptBlock>, D:\a\_work\1\vmr\src\fsharp\eng\build.ps1: line 544
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
##[error](NETCORE_ENGINEERING_TELEMETRY=Build) Failure preparing build
Turned on BuildRetry, seems like a reattempt could make it go away.
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=911138
Build error leg or test failing: VMR Vertical Build - Windows_x64
Error Message
{ "ErrorMessage" : ["Downloading vswhere", " The process cannot access the file", "sdk.txt", "because it is being used by another process."], "BuildRetry" : true, "ExcludeConsoleLog" : false }Windows_x64Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=911138
Error message validated:
[Downloading vswhere The process cannot access the file sdk.txt because it is being used by another process.]Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 1/9/2025 1:20:55 AM UTC
Report
Summary