string GetRootPath()

book_4_sparkGenerated
code_blocksInput

Description

The GetRootPath method of the Project class returns the absolute path to the location of the project's .sbproj file. This method is useful for obtaining the root directory of a Sandbox project, which can be essential for file management and project configuration tasks.

Usage

To use the GetRootPath method, you need to have an instance of the Project class. Once you have the instance, you can call this method to retrieve the root path of the project.

Example

// Assuming 'project' is an instance of Sandbox.Project
string rootPath = project.GetRootPath();
// Use the rootPath for further operations, such as loading files or configurations.