> ## Documentation Index
> Fetch the complete documentation index at: https://docs.askui.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AskUI-BuildErrorReport

### SYNOPSIS

Builds an error report for AskUI issues.

### DESCRIPTION

The AskUI-BuildErrorReport cmdlet creates a comprehensive error report by gathering logs,
project files, and additional artifacts to help troubleshoot AskUI issues.

### PARAMETERS

* `-Project` | *\<String\[]>* - Project directories to be included in the error report.
* `-AdditionalFiles` | *\<String\[]>* - Additional files to be included in the error report. (e.g. annotations, screenshots)
* `-MaxLogFileAgeInHours` | *\<Int32>* - Maximum age of log files to be included in the error report.
  Default: 96 hours (4 days)

### EXAMPLES

#### EXAMPLE 1

Creates an error report using default settings.

```powershell theme={null}
AskUI-BuildErrorReport
```

#### EXAMPLE 2

Creates an error report including specified project files and logs from last 48 hours.

```powershell theme={null}
AskUI-BuildErrorReport -Project "C:\MyProject" -MaxLogFileAgeInHours 48
```

#### EXAMPLE 3

Creates an error report including specified additional files.

```powershell theme={null}
AskUI-BuildErrorReport -AdditionalFiles "screenshot.png","error.log"
```
