[Blazor] Concurrent Build Issue -
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
We have a large solution with multiple WASM projects and upgraded everything to .net 10.
On our buildmachine we get concurrent access problems to some files.
If we append /m:1 everything is working like expecting.
`Web.Office.AppointmentBooking.App.Wasm net10.0 browser-wasm failed with 1 erro r(s) (2.3s)
/root/.dotnet/sdk/10.0.100/Sdks/Microsoft.NET.Sdk.StaticWebAssets/targets/Mi crosoft.NET.Sdk.StaticWebAssets.Compression.targets(233,5): error
System.IO.IOException: The process cannot access the file '/Agent/_work/we
bofficedigital/webofficedigital/src/Web/Public/AppointmentBooking/Web.Offi
ce.AppointmentBooking.App.Wasm/obj/Release/net10.0/rbcswa.dswa.cache.json'
because it is being used by another process.
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, Fil
eMode mode, FileAccess access, FileShare share, FileOptions options, Int64
preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixF
ileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Fun
c`4 createOpenException)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMod
e mode, FileAccess access, FileShare share, FileOptions options, Int64 pre
allocationSize, Nullable`1 unixCreateMode)
at System.IO.File.OpenWrite(String path)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.Def
ineStaticWebAssetsCache.WriteCacheManifest()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.Exe
cute()
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.