We’re seeing a consistent build failure in perfstar when running MSBuild in multi-threaded mode (/mt) on Unix (WSL/Linux).
A Blazor WebAssembly project and some other /mt tests fails. I was able to repro issue in wsl:
$ dotnet-sdk/dotnet build Net8BlazorWasmApp/Net8BlazorWasmApp/Net8BlazorWasmApp.csproj /bl /mt
Restore complete (3.8s)
Net8BlazorWasmApp net8.0 browser-wasm failed with 1 error(s) and 1 warning(s) (1.4s)
/mnt/c/Users/alinama/work/msbuild/issues/blazorwasm-failure/dotnet-sdk/sdk/10.0.106/Microsoft.Common.CurrentVersion.targets(2451,5): warning MSB3101: Could not write state file "obj\Debug/net8.0/Net8BlazorWasmApp.csproj.AssemblyReference.cache". Could not find a part of the path '/mnt/c/Users/alinama/work/msbuild/issues/blazorwasm-failure/Net8BlazorWasmApp/Net8BlazorWasmApp/obj\Debug/net8.0/Net8BlazorWasmApp.csproj.AssemblyReference.cache'.
/mnt/c/Users/alinama/work/msbuild/issues/blazorwasm-failure/dotnet-sdk/sdk/10.0.106/Sdks/Microsoft.NET.Sdk.StaticWebAssets/targets/Microsoft.NET.Sdk.StaticWebAssets.targets(684,5): error
System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/c/Users/alinama/work/msbuild/issu
es/blazorwasm-failure/Net8BlazorWasmApp/Net8BlazorWasmApp/obj\Debug/net8.0/rpswa.dswa.cache.json'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failFor
Symlink, Boolean& wasSymlink, Func`4 createOpenException)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileSh
are share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixF
ileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare
share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.File.OpenWrite(String path)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache.WriteCacheMan
ifest()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.Execute()
Build failed with 1 error(s) and 1 warning(s) in 12.8s
We’re seeing a consistent build failure in perfstar when running MSBuild in multi-threaded mode (/mt) on Unix (WSL/Linux).
A Blazor WebAssembly project and some other /mt tests fails. I was able to repro issue in wsl:
Link to perfstar run: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=13600867&view=results