ContentProcessorContext.AddDependency Method

Adds a dependency to the specified file. This causes a rebuild of the file, when modified, on subsequent incremental builds.

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

Syntax

public void AddDependency (
         string filename
)

Parameters

  • filename
    Name of an asset file.

Remarks

Do not call this method for data that has already been loaded by an importer or passed to the BuildAndLoadAsset method. It is only required for additional files needing to be read by the processor.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista