Description
Returns the absolute path to the location of the .sbproj
file of the project. This method is useful for retrieving the root directory of the project, which can be used for various file operations or configurations that require knowledge of the project's base directory.
Usage
To use the GetRootPath
method, simply call it on an instance of the Project
class. This method does not require any parameters and will return a string
representing the absolute path to the project's root directory.
Example
// Example of using GetRootPath method
Project myProject = new Project();
string rootPath = myProject.GetRootPath();
// Use the rootPath for further operations
// e.g., loading configuration files, accessing assets, etc.