Skip to content

Unable to reference non-projects in file-based Aspire AppHost #12828

@captainsafia

Description

@captainsafia

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.

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions