# getFileNameWithContent

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.3.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Gets a deterministic file path for the specified file contents

## Definition

```typescript
interface IAspireStore {
  // ... omitted for brevity
  getFileNameWithContent(
    filenameTemplate: string,
    sourceFilename: string): string
}
```

## Parameters

- `filenameTemplate` (`string`)
- `sourceFilename` (`string`)

## Returns

`string`

## Applies to

- [IAspireStore](/reference/api/typescript/aspire.hosting/iaspirestore.md)
