> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.compiler/yarn.compiler.project.md).

# Project

Class in [Yarn.Compiler](/2.4/api/csharp/yarn.compiler.md)

Inherits from `System.Object`

## Summary

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

```csharp
public class Project
```

## Classes

| Name                                                                                                              | Description                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| [LocalizationInfo](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.localizationinfo.md) | Stores the locations of where localized assets and a localized string table for a Yarn Project may be found. |

## Fields

| Name                                                                                                                                | Description                                        |
| ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [CurrentProjectFileVersion](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.currentprojectfileversion.md) | The current version of `.yarnproject` file format. |

## Methods

| Name                                                                                                                  | Description                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| [GetJson()](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.getjson.md)                     | Gets a string containing JSON-formatted text that represents this [Project](/2.4/api/csharp/yarn.compiler/yarn.compiler.project.md) . |
| [IsMatchingPath(string)](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.ismatchingpath.md) | Gets a value indicating whether `path` is a path that is included in this project.                                                    |
| [LoadFromFile(string)](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.loadfromfile.md)     | Loads and parses a [Project](/2.4/api/csharp/yarn.compiler/yarn.compiler.project.md) from a file on disk.                             |
| [SaveToFile(string)](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.savetofile.md)         | Saves a [Project](/2.4/api/csharp/yarn.compiler/yarn.compiler.project.md) as JSON-formatted text to a file on disk.                   |

## Properties

| Name                                                                                                                    | Description                                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BaseLanguage](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.baselanguage.md)               | Gets or sets the base language of the project, as an IETF BCP-47 language tag.                                                                                                                                                        |
| [CompilerOptions](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.compileroptions.md)         | Gets or sets a dictionary containing instructions that control how the Yarn Spinner compiler should compile a project.                                                                                                                |
| [Definitions](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.definitions.md)                 | Gets or sets the path to a JSON file containing command and function definitions that this project references.                                                                                                                        |
| [DefinitionsPath](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.definitionspath.md)         | Gets the path to the Definitions file, relative to this project's location.                                                                                                                                                           |
| [ExcludeFilePatterns](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.excludefilepatterns.md) | Gets or sets the collection of file search patterns that should be excluded from this project.                                                                                                                                        |
| [FileVersion](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.fileversion.md)                 | Gets or sets the file version of the project.                                                                                                                                                                                         |
| [Localisation](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.localisation.md)               | Gets or sets the collection of [LocalizationInfo](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.localizationinfo.md) objects that store information about where localized data for this project is found. |
| [Path](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.path.md)                               | Gets the path that the [Project](/2.4/api/csharp/yarn.compiler/yarn.compiler.project.md) was loaded from.                                                                                                                             |
| [SourceFilePatterns](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.sourcefilepatterns.md)   | Gets or sets the collection of file search patterns used to locate Yarn files that form this project.                                                                                                                                 |
| [SourceFiles](/2.4/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.sourcefiles.md)                 | Gets the collection of Yarn files that should be used to compile the project.                                                                                                                                                         |
