Project

Class in Yarn.Compiler

Inherits from System.Object

Summary

Yarn Projects represent instructions on where to find Yarn scripts and associated assets, and how they should be compiled.

public class Project

Classes

Name
Description

Stores the locations of where localized assets and a localized string table for a Yarn Project may be found.

Constructors

Name
Description

Initializes a new instance of the Project class.

Initializes a new instance of the Project class.

Fields

Name
Description

The current version of .yarnproject file format.

A placeholder string that represents the location of the workspace root in paths.

A version number representing Yarn Spinner 2.

A version number representing Yarn Spinner 3.

Methods

Name
Description

Gets a string containing JSON-formatted text that represents this Project .

Gets a value indicating whether path is a path that is included in this project.

Gets a value indicating whether number is a valid Yarn Spinner version number.

Loads and parses a Project from a file on disk.

Saves a Project as JSON-formatted text to a file on disk.

Properties

Name
Description

Gets or sets a value indicating whether compiler features that are not intended for production use are allowed.

Gets or sets the base language of the project, as an IETF BCP-47 language tag.

Gets or sets a dictionary containing instructions that control how the Yarn Spinner compiler should compile a project.

Gets or sets the path to a JSON file containing command and function definitions that this project references.

Gets the absolute paths to the project's Definitions files.

Gets the path to the Definitions file, relative to this project's location.

Gets or sets the collection of file search patterns that should be excluded from this project.

Contains any data parsed from the source file that was not matched to a property on this type.

Gets or sets the file version of the project.

Gets or sets the collection of LocalizationInfo objects that store information about where localized data for this project is found.

Gets the path that the Project was loaded from.

Gets or sets the collection of file search patterns used to locate Yarn files that form this project.

Gets the collection of Yarn files that should be used to compile the project.

The location of the root of the workspace in which this project is located.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.