Rodney,

Can you verify whether the NAnt.Contrib.Tasks assembly is not located in (and loaded automatically from) your nant bin directory ?

In that case .NET will indeed check that directory for assemblies that are referenced by the NAnt.Contrib.Tasks assembly.

Gert

----- Original Message ----- From: "Woodruff, Rodney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 19, 2004 6:36 PM
Subject: RE: [Nant-users] SourceSafe.Interop, or one of its dependencies, was not found [PROBLEM SOLVED]



Hello All,

I have solved this problem. I believe this should now be classified as a
bug.

In my build file I have the following line:

<snip>
<loadtasks
assembly="C:\bin\nantcontrib.Tasks-0.84\bin\NAnt.Contrib.Tasks.dll" />
</snip>

However, when NAnt invokes the vssget call it looks in the NAnt bin
folder for the SourceSafe.Interop assembly.  You can see the output from
my original posts but here is a snip from that post:

<snip>
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: SourceSafe.Interop, Version=5.1.0.0,
Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop.DLL.
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop/SourceSafe.Interop.DLL.
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop.EXE.
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop/SourceSafe.Interop.EXE.
</snip>

Should this be happening or is there something that I need to specify
along with the <loadtasks> task that will make sure that NAnt knows how
to find the SourceSafe.Interop assembly?

Thanks.

-- Rodney

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Woodruff,
Rodney
Sent: Tuesday, October 19, 2004 12:04 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] SourceSafe.Interop, or one of its dependencies,
was not found

Hello All,

I am trying to use the vss task from nant contrib.  My target is below:

<target name="vss" depends="init">
<vssget user="user"
password="password"
localpath="${framework.SourceDir}"
recursive="true"
replace="true"
writable="false"
removedeleted="true"
dbpath="\\???????\srcsafe.ini"
path="$/framework.root"
/>
</target>

I am using the 'loadtasks' task to load tasks from the
Nant.Contrib.Tasks.dll and the SourceSafe.Interop.dll. I didn't want to
send a message to the developer list just yet because I figured that
this is has already been solved.

I searched the list archive, google and google groups but could not find
a solution to this problem.

Here is the output when I try to run this task:

<snip>
C:\Projects\ZDSURVEY\framework>nant vss
NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 12/26/2003)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Projects/ZDSURVEY/framework/framework.build
Target(s) specified: vss
[loadtasks] Loading tasks from assembly
C:\bin\nantcontrib.Tasks-0.84\bin\NAnt.Contrib.Tasks.dll.
[loadtasks] Loading tasks from assembly
C:\bin\nantcontrib.Tasks-0.84\bin\SourceSafe.Interop.dll.

vss:


BUILD FAILED

INTERNAL ERROR

System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.IO.FileNo
tFoundException: File or assembly name SourceSafe.Interop, or one of its
dependencies, was not found.
File name: "SourceSafe.Interop"
  at NAnt.Contrib.Tasks.SourceSafe.BaseTask..ctor()
  at NAnt.Contrib.Tasks.SourceSafe.GetTask..ctor()

=== Pre-bind state information ===
LOG: DisplayName = SourceSafe.Interop, Version=5.1.0.0, Culture=neutral,
PublicKeyToken=null
(Fully-specified)
LOG: Appbase = C:\bin\nant-0.84\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : NAnt.Contrib.Tasks, Version=0.84.1455.0,
Culture=neutral, PublicKeyToken=null.
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: SourceSafe.Interop, Version=5.1.0.0,
Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop.DLL.
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop/SourceSafe.Interop.DLL.
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop.EXE.
LOG: Attempting download of new URL
file:///C:/bin/nant-0.84/bin/SourceSafe.Interop/SourceSafe.Interop.EXE.

  --- End of inner exception stack trace ---
  at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
  at System.Activator.CreateInstance(Type type, Boolean nonPublic)
  at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Obj
ect[] activationAttributes)
  at System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture
, Object[] activationAttributes)
  at System.Reflection.Assembly.CreateInstance(String typeName, Boolean
ignoreCase, BindingFlags bindingAttr, Binder binder
, Object[] args, CultureInfo culture, Object[] activationAttributes)
  at NAnt.Core.TaskBuilder.CreateTask()
  at NAnt.Core.TypeFactory.CreateTask(XmlNode taskNode, Project proj)
  at NAnt.Core.Target.Execute()
  at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
  at NAnt.Core.Project.Execute()
  at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]

Total time: 0.1 seconds.
</snip>

Thanks in advance for your help.

-- Rodney


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users




------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to