Support injecting ExtraInterfaces
on generated project metadata during build
#5683
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
azure
Issues associated specifically with scenarios tied to using Azure
azure-functions
Issues related to the Azure Functions integration
Milestone
For some scenarios, specifically Azure Functions, we want to implement Functions-specific behavior in Aspire APIs like Azure Functions. We currently achieve this by defining a custom
AzureFunctionsResource
resource type that is a wrapper around the defaultProjectResource
type. This pattern allows us to model specific behavior to targetAzureFunctionsResource
. However, it requires that users call theAddAzureFunctionsProject
extension method in order to be able to invoke Functions-specific code.An additional approach is to support attaching additional metadata into pre-existing
ProjectResources
and support targeting our Functions-specific methods onto that interface:In order to support this scenario, we need to be able to customize the interfaces that are applied to the
AzureFunctionsTest_Functions
type via MSBuild and the cogeneration step. To achieve this, we need to support an@(ExtraInterfaces)
property that hosting packages can populate with additional interfaces that need to be applied on projects they target.The flow of this would look as follows:
IsAzureFunctionsProject=true
propertyThe text was updated successfully, but these errors were encountered: