Skip to content

[Blazor] Concurrent Build Issue -Β #64352

@softwaretirol

Description

@softwaretirol

Is there an existing issue for this?

  • 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 c4 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions