Title: Message
Gert,
 
There are no instructions in the documentation for NAnt nor NAntContrib about how to use NAntContrib.  Like most people, I also just copied the dlls to the NAnt\bin directory because there was no guidance otherwise.  I looked all over today and the only thing I could find about NAntContrib usage was an example for the <loadtasks> task.  Based on another thread here I have switched to adding an include element to Nant.Exe.Config.
 
The Readme for NAntContrib (which is not in the binary distribution by the way) only says how to build NAntContrib; nothing about how to use it after it's built.
 
Perhaps this is something that should be added before 0.85 is released.
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Wagner
Sent: Thursday, December 09, 2004 4:14 PM
To: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Invalid element <vssget>. Unknown task or datatype.

I wasn't paying attention and originally sent this to Gert instead of the list. Apologies.
 
I'm interested in your PS comment. I thought that the NAntContrib assemblies were all private so I just copied them to the nant\bin folder. Should I have installed them in the GAC or is there an entry in the nant.exe.config that I missed?
 
What approach should I have used?


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gert Driesen
Sent: Wednesday, December 08, 2004 11:26 PM
To: 'Andy Eunson'; [EMAIL PROTECTED]
Subject: RE: [Nant-users] Invalid element <vssget>. Unknown task or datatype.

Hi Andy,
 
I noticed that you copied the NAnt.Contrib.Tasks assembly to your nant bin directory. Did you also copy all other files (eg. Interop.WindowsInstaller.dll) from the NAntContrib bin directory to the NAnt bin directory ?
 
Gert
 
PS. This is why I discourage copying the NAntContrib binaries to the NAnt bin directory ;)


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Eunson
Sent: donderdag 9 december 2004 6:23
To: [EMAIL PROTECTED]
Subject: [Nant-users] Invalid element <vssget>. Unknown task or datatype.

 

This appears to be a 1.1 related problem. I had a very similar issue with the solution task in nant .85 using the dist assemblies on a machine that only has NET1.1. The solution there was to use the 85RC1 dist to build the 85RC1 source (you can’t build 85 with 84). Once I did that solution magically starts to work.

 

Nonetheless this is what I’m seeing when using 85RC1 built locally with NET1.1 and NantContrib Dist assemblies.

 

 

[loadtasks] Failure scanning "C:\Program Files\nant\bin\NAnt.Contrib.Tasks.dll" for extensions. One or more of the types in the assembly unable to load.

Buildfile: file:///D:/Data Files/Code/Solutions/SC.MasterBuild/Test/Test.build

Target(s) specified: Get_Source

 

 

Get_Source:

 

     [echo] Getting Phoenix Source tree...

 

BUILD FAILED

 

D:\Data Files\Code\Solutions\SC.MasterBuild\Test\Test.build(8,4):

Invalid element <vssget>. Unknown task or datatype.

 

 

I tried to build NantContrib using 1.1 and get the following

 

 

[loadtasks] Failure scanning "C:\Program Files\nant\bin\NAnt.Contrib.Tasks.dll" for extensions. One or more of the types in the assembly unable to load.

Buildfile: file:///C:/Program Files/nant/NANTCONTRIB/Source/nantcontrib-0.85-nightly/NAntContrib.build

Target(s) specified: test

 

 

init:

 

 

debug:

 

 

set-framework-configuration:

 

 

set-net-1.1-framework-configuration:

 

 

BUILD FAILED

 

C:\Program Files\nant\NANTCONTRIB\Source\nantcontrib-0.85-nightly\NAntContrib.build(42,14):

Please pass the folder containing the NAnt build on the commandline as a property (-D:nant.dir=???).

 

Total time: 0.2 seconds.

 

I try “nant –d:nant.dir=C:\progra~1\nant\bin” but that doesn’t work. What am I missing?

Reply via email to