NAnt Help Task Reference <slingshot> | NAnt.Contrib.Tasks () |
Converts a Visual Studio.NET Solution to a NAnt build file or nmake file.
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 |
build.basedir
is required.
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>