AssemblyDefinitionInfo Class

Definition

This class represents an AssemblyDefinition file of a Unity project. It can be used to parse the file contents using JsonUtility.FromJson.

public ref class AssemblyDefinitionInfo
public class AssemblyDefinitionInfo
type AssemblyDefinitionInfo = class
Public Class AssemblyDefinitionInfo
Inheritance
AssemblyDefinitionInfo

Constructors

AssemblyDefinitionInfo()

Fields

allowUnsafeCode
autoReferenced
defineConstraints
EditorPlatform
excludePlatforms
includePlatforms
optionalUnityReferences
overrideReferences
TestAssembliesReference

Properties

BuiltInPackage

Gets whether this represents a built-in package that lives in Editor installation folder.

Directory

Gets the parent directory of the associated file, or returns the Assets folder if it's a DefaultAssembly.

EditorPlatformSupported

Gets whether the Editor platform is specified to be supported.

Guid

Gets or sets the parsed Guid of the AssemblyDefinition asset.

IsDefaultAssembly

Gets whether this is a default assembly definition like Assembly-CSharp

Name

Name of this assembly definition info

NonEditorPlatformSupported

Gets whether any non-Editor platforms are specified to be supported.

PrecompiledAssemblyReferences

Gets DLL references for this assembly definition.

References

Gets AsmDef references for this assembly definition.

TestAssembly

Gets whether this is marked as a TestAssembly.

Methods

GetDefaultAssemblyCSharpInfo(Assembly)

Creates an instance of AssemblyDefinitionInfo for the default projects (such as Assembly-CSharp)

GetSources()

Gets the source files for this assembly definition.

Parse(FileInfo, UnityProjectInfo, Assembly, Boolean)

Parses an asmdef file creating a new instance of AssemblyDefinitionInfo.

ToString()

A more readable string representation for assembly definition.

Validate(IEnumerable<CompilationPlatformInfo>)

After it's parsed from JSON, this method should be invoked to validate some of the values and set additional properties.

Applies to