Hi Vincent,
I'm no expert (I've just started with nant too) but here's how I got
slingshot to work...
I download Nantcontrib from the snapshot page. I put the following in my
PATH; "NAnt\NAntContrib\Tools\SLiNgshoT\build\Debug". This directory
contains a program called slingshot.exe
I then changed to the directory that contained my .sln file and typed the
following command:
slingshot -nant build.basedir=D:\myAppDir -sln myProgram.sln >
myProgram.build
This generated a nant build file...however take note of the following
wrinkles you need to be aware of:
1) I had a complex solution file with many projects with interdependencies.
I had to manually edit the build order generated by Slingshot in XML to
create a sucessful build. As VS.NET had the build order specified correctly
I imagine this is a bug.
2) Some of my projects had dependencies on assembly's in the .NET Framework
directory "\WINNT\Microsoft.NET\Framework\v1.0.3705" - slingshot set the
path to ${build.basedir}. You have the choice to either move a copy of the
file your project needs to your build directory or manually edit the build
file. I created a custom variable to store the path...
3) Some of my projects had dependencies on VS.NET assemblys in "Program
Files\Microsoft Visual Studio .NET\Common7\IDE\PublicAssemblies" as they
extend the VS.NET IDE...again slingshot did not take the reference from the
.sln file, but instead set the search path to ${build.basedir}. This is ok,
but you need to be aware of it :)
I don't know if you can use slingshot as a nant task in the way you mention
(perhaps an expert out there can advise) but in the meanwhile you should get
it to work as detailed here.
Good luck,
Brian.
----Original Message Follows----
From: "Vincent Van Proosdij" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [Nant-users] RE: NAnt and ASPX web project
Date: Thu, 12 Dec 2002 11:14:42 +0100
Hello all,
I try to create a .build file from a visual studio .net solution (.sln)
file.
When I use a .build file to do this with Nant and the extra <slingshot>
task I get this error :
"C:\projects\Macaw\TestSolution\solution.build(4,3): Unknown task
<slingshot>
Try 'nant -help' for more information"
This is my 'simple' build file to convert the .sln :
<project default="start" name="slingshottest">
<target name="start" description="start">
<slingshot solution="TestSolution.sln" format="nant"
output="MySolution.build">
</slingshot>
</target>
</project>
This is my command line (Nant and NantContrib folders are placed in the
root of c: )
C:\projects\Macaw\TestSolution>\nant\bin\nant -Buildfile:solution.build
My question is now : how do I make this work?
Do I have to do something special with NantContrib, eg put it in the
nant folder?
I use the latest nightly build of nant. Is slingshot part of this or do
I need NantContrib?
Greets,
vincent
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
- [Nant-users] RE: NAnt and ASPX web project Vincent Van Proosdij
- RE: [Nant-users] RE: NAnt and ASPX web project Brian Davis
- RE: [Nant-users] RE: NAnt and ASPX web project Vincent Van Proosdij
