# ShouldIncludeInBuild(string)

> Determines whether to include a managed plugin in a build.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.PackageManager](/engine/6000.6/script-reference/unityeditor/packagemanager.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** IShouldIncludeInBuildCallback interface is deprecated and will be removed in a later version, use PluginImporter.SetIncludeInBuildDelegate instead.

```csharp
bool ShouldIncludeInBuild(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The absolute path of the managed plugin to include or exclude.

### Returns

| Type                                                          | Description                                                                                             |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns **true** to include the plugin identified by `path` in the build; otherwise, returns **false**. |

### Remarks

Predicate invoked during a build to determine whether to include a managed plugin (DLL) in the associated package.
