<solution>

[This is preliminary documentation and subject to change.]

Compiles VS.NET solutions (or sets of projects), automatically determining project dependencies from inter-project references.

This task will analyze each of the given .csproj or .vbproj files and build them in the proper order. It supports reading solution files, as well as enterprise template projects.

This task also supports the model of referencing projects by their output filenames, rather than referencing them inside the solution. It will automatically detect the existance of a file reference and convert it to a project reference. For example, if project A references the file in the release output directory of project B, the solution task will automatically convert this to a project dependency on project B and will reference the appropriate configuration output directory at the final build time (ie: reference the debug version of B if the solution is built as debug).

Note: Only VS.NET 2002 and VS.NET 2003 solutions are supported right now.

Parameters

Attribute Type Description Required
configuration string The name of the solution configuration to build. True
enablewebdav bool Allow the task to use WebDAV for retrieving/compiling the projects within solution. Use of WebMap is preferred over WebDAV. The default is false. False
includevsfolders bool Includes Visual Studio search folders in reference search path. The default is true. False
outputdir directory The directory where compiled targets will be placed. This overrides path settings contained in the solution/project. False
solutionfile file The name of the VS.NET solution file to build. False
failonerror bool Determines if task failure stops the build, or is just reported. The default is true. False
if bool If true then the task will be executed; otherwise, skipped. The default is true. False
unless bool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbose bool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<projects>

The projects to build.

</projects>

<referenceprojects>

The projects to scan, but not build.

</referenceprojects>

<webmap>

<map ... />

WebMap of URL's to project references.

Contains a strongly typed collection of WebMap objects.

<map ... />
...

</webmap>

<excludeprojects>

Fileset of projects to exclude.

</excludeprojects>

<assemblyfolders>

Set of folders where references are searched when not found in path from project file (HintPath).

</assemblyfolders>

Examples

Requirements

Assembly: NAnt.VSNetTasks (0.85.1793.0)