<slingshot>

Converts a Visual Studio.NET Solution to a NAnt build file or nmake file.

Parameters

Attribute Type Description Required
format string The output file format - either nant or nmake. True
output string The output file name. True
solution string The Visual Studio.NET solution file to convert. True
failonerror bool False
if bool False
unless bool False
verbose bool False

Nested Elements:

<maps>

<option ... />

Mappings from URI to directories. These are required for web projects.

<option ... />
...

</maps>

<parameters>

<option ... />

Parameters to pass to SLiNgshoT. The parameter build.basedir is required.

<option ... />
...

</parameters>

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>