In a file-based Aspire app, project references to non-executable resources don’t behave correctly. The intended approach is to disable the default app-host behavior for those references by applying property metadata (IsAspireProjectResource ) directly on the reference. However, file-based apps do not allow applying metadata to project references, so this workaround isn’t available.
The only current option is to disable IsAspireAppHost entirely, which causes additional unintended side effects elsewhere in the app.