# Project(string,string?)

Constructor in [Project](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.project)

## Summary

Initializes a new instance of the [Project](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.project) class.

```csharp
public Project(string path, string? workspaceRootPath = null)
```

## Parameters

| Name                       | Description                                                                                                                                                      |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `string` path              | The value to use for the new instance's [Path](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.path) property. |
| `string` workspaceRootPath | The path to the root of the current workspace, or `null` .                                                                                                       |
