Rebuild & Restart aspire project when restarting from aspire dashboard
- 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
### Is your feature request related to a problem? Please describe the problem.
IDE here refers to VS/VSCode
Currently, when restarting from aspire dashboard, IDE would not rebuild the underlying project, it just restart from the most recent successful build.
This causes bug if user had applied good edit changes from hotreload before they restarting from aspire dashboard, in best cases they lost all hotreload changes, and most likely they would get a badimage error the next time they tried to apply a change after restarting.
### Describe the solution you'd like
To address this issue, IDE should also build the projects when they receives restart signal from DCP, this ensure the most recent change has been compiled into dll for the new process.
## Deal with build latency
The build might be time consuming, therefore it might be necessary to make the build process DCP/aspire dashboard aware. see #9321
## Deal with build error
When IDE encounters a build error, it can send a terminate signal to DCP so DCP knows the restarting process is completed (with error).
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.