# GetAssemblyDefinitionFilePathFromScriptPath(string)

> Returns the assembly definition file path for a source (script) path. Returns null if there is no assembly definition file for the given script path.

## Definition

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

```csharp
public static string GetAssemblyDefinitionFilePathFromScriptPath(string sourceFilePath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Source (script) file path.

### Returns

| Type                                                           | Description                            |
| -------------------------------------------------------------- | -------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | File path of assembly definition file. |
