# AzureFunctionsProjectResourceExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Functions](/reference/api/csharp/aspire.hosting.azure.functions.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs)

Extension methods for [AzureFunctionsProjectResource](/reference/api/csharp/aspire.hosting.azure.functions/azurefunctionsprojectresource.md).

## Definition

```csharp
namespace Aspire.Hosting;

public static class AzureFunctionsProjectResourceExtensions
{
    // ...
}
```

## Methods

- [AddAzureFunctionsProject(IDistributedApplicationBuilder, string)](/reference/api/csharp/aspire.hosting.azure.functions/azurefunctionsprojectresourceextensions/methods.md#addazurefunctionsproject-idistributedapplicationbuilder-string) : `IResourceBuilder<AzureFunctionsProjectResource>` `extension` `ats ignored` -- Adds an Azure Functions project to the distributed application.
- [AddAzureFunctionsProject(IDistributedApplicationBuilder, string, string)](/reference/api/csharp/aspire.hosting.azure.functions/azurefunctionsprojectresourceextensions/methods.md#addazurefunctionsproject-idistributedapplicationbuilder-string-string) : `IResourceBuilder<AzureFunctionsProjectResource>` `extension` `ats export` -- Adds an Azure Functions project to the distributed application.
- [WithHostStorage(IResourceBuilder<AzureFunctionsProjectResource>, IResourceBuilder<AzureStorageResource>)](/reference/api/csharp/aspire.hosting.azure.functions/azurefunctionsprojectresourceextensions/methods.md#withhoststorage-iresourcebuilder-azurefunctionsprojectresource-iresourcebuilder-azurestorageresource) : `IResourceBuilder<AzureFunctionsProjectResource>` `extension` `ats export` -- Configures the Azure Functions project resource to use the specified Azure Storage resource as its host storage.
- [WithReference(IResourceBuilder<AzureFunctionsProjectResource>, IResourceBuilder<TSource>, string?)](/reference/api/csharp/aspire.hosting.azure.functions/azurefunctionsprojectresourceextensions/methods.md#withreference-iresourcebuilder-azurefunctionsprojectresource-iresourcebuilder-tsource-string) : `IResourceBuilder<AzureFunctionsProjectResource>` `extension` `ats ignored` -- Injects Azure Functions specific connection information into the environment variables of the Azure Functions project resource.
