The ConfigFilePath
property provides the absolute path to the .addon
file associated with the project. This path is crucial for accessing the configuration details of the project stored in the .addon
file.
The ConfigFilePath
property provides the absolute path to the .addon
file associated with the project. This path is crucial for accessing the configuration details of the project stored in the .addon
file.
To access the configuration file path of a project, use the ConfigFilePath
property. This property is read-only and returns a string
representing the absolute path to the .addon
file.
// Example of accessing the ConfigFilePath property Sandbox.Project project = Sandbox.Project.Current; string configPath = project.ConfigFilePath; // Use the configPath to perform operations related to the configuration file if (!string.IsNullOrEmpty(configPath)) { // Perform operations with the config file path // For example, read the configuration file }