Partilhar via


ContentBuildLogger.LoggerRootDirectory Property

Note

This property is available only when developing for Windows.

Gets or sets the base reference path used when reporting errors during the content build process.

Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public string LoggerRootDirectory { get; set; }

Property Value

Current name of the base directory or the value to be set.

Remarks

When building XNA content, all errors are displayed in the Error List Window of Visual Studio. Along with the data that triggered the error, the Error List displays the path and filename where the offending data was encountered.

By default, the path of the offending file that is reported in the Error List is always expressed as it relates to the location of the project file that references it.

When set, the LoggerRootDirectory property specifies an explicit base path for error reporting that overrides the default operation. All offending files reported in the Error List will be expressed as they relate to the base path set in LoggerRootDirectory.

See Also

Reference

ContentBuildLogger Class
ContentBuildLogger Members
Microsoft.Xna.Framework.Content.Pipeline Namespace

Platforms

Windows 7, Windows Vista, Windows XP