ContentImporterContext

class ContentImporterContext : System.Object

Provides properties that define logging behavior for the importer.

readonly string IntermediateDirectory

The absolute path to the root of the build intermediate (object) directory.

readonly ContentBuildLogger Logger

Gets the logger for an importer.

readonly string OutputDirectory

The absolute path to the root of the build output (binaries) directory.

public abstract void AddDependency(string filename)

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

Parameters:
  • filename (string) – Name of an asset file.