AssemblyDefinitionInfo.Parse Method

Definition

Parses an asmdef file creating a new instance of AssemblyDefinitionInfo.

public static Microsoft.MixedReality.Toolkit.MSBuild.AssemblyDefinitionInfo Parse (System.IO.FileInfo file, Microsoft.MixedReality.Toolkit.MSBuild.UnityProjectInfo unityProjectInfo, UnityEditor.Compilation.Assembly assembly, bool isBuiltInPackage = false);
static member Parse : System.IO.FileInfo * Microsoft.MixedReality.Toolkit.MSBuild.UnityProjectInfo * UnityEditor.Compilation.Assembly * bool -> Microsoft.MixedReality.Toolkit.MSBuild.AssemblyDefinitionInfo
Public Shared Function Parse (file As FileInfo, unityProjectInfo As UnityProjectInfo, assembly As Assembly, Optional isBuiltInPackage As Boolean = false) As AssemblyDefinitionInfo

Parameters

file
FileInfo

The file representing asmdef.

unityProjectInfo
UnityProjectInfo

Instance of UnityProjectInfo.

assembly
UnityEditor.Compilation.Assembly

The Unity assembly reference.

isBuiltInPackage
Boolean

True whether this asmdef lives in the editor installation folder.

Returns

AssemblyDefinitionInfo

Applies to