SlingshotTask Class

Summary

Converts a Visual Studio.NET Solution to a NAnt build file or nmake file.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • Task
graph BT Type-->Base0["Task"] Type["SlingshotTask"] class Type type-node

Syntax

[TaskName("slingshot")]
[Obsolete("Use the <solution> task instead.", false)]
public class SlingshotTask : Task

Examples

Convert the solution MySolution.sln to the NAnt build file MySolution.build and call the new build file.

<slingshot solution="MySolution.sln" format="nant" output="MySolution.build"> 
    <parameters>
        <option name="build.basedir" value="..\bin"/>
    </parameters> 
</slingshot>
<nant buildfile="MySolution.build"/>

Convert the solution MySolution.sln to the NAnt build file MySolution.build. As the solution contains one or more web projects, one or more maps needs to be specified.

<slingshot solution="MySolution.sln" format="nant" output="MySolution.build">
    <parameters>
        <option name="build.basedir" value="..\bin"/>
    </parameters> 
    <maps>
        <option name="http://localhost" value="C:\Inetpub\wwwroot"/>
    </maps>
</slingshot>

Attributes

Type Description
TaskName
ObsoleteAttribute

Properties

Name Value Summary
Format string
The output file format - either nant or nmake.
Maps OptionCollection
Mappings from URI to directories. These are required for web projects.
Output string
The output file name.
Parameters OptionCollection
Parameters to pass to SLiNgshoT. The parameter build.basedir is required.
Solution string
The Visual Studio.NET solution file to convert.

Methods

Name Value Summary
ExecuteTask() void