ContentProcessorContext.AddDependency Method

Bb194924.note(en-us,XNAGameStudio.41).gifNote
This method is available only when developing for Windows.

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)

public abstract void AddDependency (
         string filename
)

Parameters

filename
Type: String
Name of an asset file.

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.

Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: