共用方式為


BuildContent.SourceAssets Property

Gets or sets the source asset files to be built.

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

Syntax

[RequiredAttribute]
public ITaskItem[] SourceAssets { get; set; }

Property Value

Current source asset files to be built or the values to be set.

Remarks

This task list can be decorated with the following metadata attributes.

Attribute Name Description
Name Final name of the compiled asset. This value is passed to the runtime content loader. If you omit this value, it defaults to the source file name with no extension.
Importer Importer used to read the source asset. If you omit this value, the importer is deduced from the source file extension.
Processor Content processor used to convert the asset data. If you omit this value, data passes through the pipeline with no custom processing.

See Also

Reference

BuildContent Class
BuildContent Members
Microsoft.Xna.Framework.Content.Pipeline.Tasks Namespace

Platforms

Windows XP SP2, Windows Vista