Partager via


AL.SourceModules Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the modules to be compiled into an assembly.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property SourceModules As ITaskItem()
public ITaskItem[] SourceModules { get; set; }
public:
property array<ITaskItem^>^ SourceModules {
    array<ITaskItem^>^ get ();
    void set (array<ITaskItem^>^ value);
}
member SourceModules : ITaskItem[] with get, set
function get SourceModules () : ITaskItem[]
function set SourceModules (value : ITaskItem[])

Property Value

Type: array<Microsoft.Build.Framework.ITaskItem[]
The modules to be compiled into an assembly.

Remarks

The modules will be listed in the manifest of the resulting assembly, and will still need to distributed and available in order for the assembly to load. The items passed into this parameter may have additional metadata called Target, which specifies the path and filename to which the task copies the file, after which it compiles this new file into the assembly. For more information, see the documentation for Assembly Linker (Al.exe). This property corresponds to the list of modules passed into Al.exe without a specific switch.

.NET Framework Security

See Also

Reference

AL Class

Microsoft.Build.Tasks Namespace