# FoundryResource.AddProject

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Defined on: [FoundryResource](/reference/api/go/aspire.hosting.foundry/foundryresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Adds a Microsoft Foundry project resource to the application model. This will also attach the project as a deployment target for agents.

## Definition

```go
type FoundryResource interface {
    // ... omitted for brevity
    AddProject(name string) AzureCognitiveServicesProjectResource
}
```

## Signature

```go
AddProject(name string) AzureCognitiveServicesProjectResource
```

## Parameters

- `name` (`string`) -- The name of the Microsoft Foundry project resource.

## Returns

[`AzureCognitiveServicesProjectResource`](/reference/api/go/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [FoundryResource](/reference/api/go/aspire.hosting.foundry/foundryresource.md) -- `handle`
