microsoft / microsoft/aspire

Error on running Multiple Instances of the Same Project

Open
#11,882 2 comments 0 reactions 0 assignees View on GitHub
needs-area-label
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

I have created multiple instances of the same project (related issue #1022) .
However, my project reads some files after running, and here I am getting an Error "The process cannot access the file because it is being used by another process".

This is happening because there is only a single build.

Is there any workaround possible?

### Expected Behavior

Reading files from multiple instances should work fine.

### Steps To Reproduce

- Create a project that reads some files after running.
- Run multiple instances of the project like this #1022

### Exceptions (if any)

The process cannot access the file because it is being used by another process

### .NET Version info

Aspire AppHost Project Version 9.5
My project is running on .NET 8

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.