# TryGetBuildReportDirectory(GUID, out string)

> Attempts to get the build report directory for a specific build.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build](/engine/6000.7/script-reference/unityeditor/build.md)
* **Assembly:** UnityEditor.CoreModule

## TryGetBuildReportDirectory(GUID, string)

```csharp
public static bool TryGetBuildReportDirectory(GUID buildSessionGuid, out string directory)
```

### Parameters

**** (GUID): The unique session GUID of the build to look up.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): When this method returns, contains the absolute path to the build report directory.

### Returns

| Type                                                          | Description                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the build is tracked in the build history; otherwise `false`. |

### Remarks

The build report directory holds the [BuildReport](/engine/6000.7/script-reference/unityeditor/build/reporting/buildreport.md) file and the supporting data captured during that build. The directory is guaranteed to exist on disk if this method returns `true`. Use this to locate files written during the build, or to write additional files alongside the build report.
