Skip to content

Commit b1666e7

Browse files
Document concurrency issues with file-based apps (#51435)
Add note about concurrent invocations causing errors. From dotnet/sdk#52773
1 parent 65962cc commit b1666e7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/core/sdk/file-based-apps.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ Caching improves build performance but can cause confusion when:
363363
- Changes to implicit build files don't trigger rebuilds.
364364
- Moving files to different directories doesn't invalidate cache.
365365

366+
> [!NOTE]
367+
> Concurrent invocations of a file-based app (for example, running more than one instance of the same file-based app in parallel) can cause errors due to contention over the build output files. To avoid this, first build the file-based app via `dotnet build file.cs` before starting the concurrent instances via `dotnet run file.cs --no-build`.
368+
366369
### Workarounds
367370

368371
- Clear cache artifacts for file-based apps by using the following command:

0 commit comments

Comments
 (0)