It is quite possible the COM object the current Interop.StarTeam.dll is
incorrect as they have changed a few versions of the SDK since I created
the task.

Starbase/Borland now has a .NET interop assembly included with their
latest SDK (default install dir): 
C:\Program Files\Starbase\StarGate SDK\Lib\StarGate.NET.dll

The reference should be changed to build against this DLL. I recently
pulled my local build of the starteam tasks out of NAntContrib as most
things there are broken against the current version of Nant. 

Here is my build target for a starteam task assembly:

        <property name="ST.Interop" value="C:\Program
Files\Starbase\StarGate SDK\Lib\StarGate.NET.dll" />

        <!-- compile StarTeamTasks.dll -->
        <property name="src.dir"
value="C:\OpenSource\NAntContrib\src\Tasks\StarTeam"/>

        <csc target="library" 
               output="${build.dir}\${project.FormalName}.dll" 
               debug="${debug}" 
               doc="${build.dir}\${project.FormalName}.xml"
            >
            <sources basedir="${src.dir}">
                <includes name="**/*.cs"/>
            </sources>
            <references>
                <includes name="${nant-bin.dir}\NAnt.Core.dll"/>
                <includes name="${ST.Interop}"/>
            </references>
            <arg value="/nowarn:1591"/>
        </csc>

        <copy todir="${build.dir}" file="${ST.Interop}"/>


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 5:57 AM
To: [EMAIL PROTECTED]
Subject: [nant-dev] stautolabel task error


Hi, anyone encountered the error below and know how to resolve it ?

thanks
leong


my build script:
=====================================================================
<project name="TA" default="build">
   <target name="GetSource" description="Get Source code from VSS">
     <stautolabel
          version="c:\projects\release1\source\ta\versionnumber.xml"
          label="Dev-Ready"
      />
   </target>
========================================================================
=

INTERNAL ERROR
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80040154): COM object
with CLSID {586974A4-56AB-11D5-B316-0800209CC2CE} is either not valid or
not registered.
   at NAnt.Contrib.Tasks.StarTeam.StarTeamAutoLabel..ctor()
   --- 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, Object[]
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 SourceForge.NAnt.TaskBuilder.CreateTask()
   at SourceForge.NAnt.TaskFactory.CreateTask(XmlNode taskNode, Project
proj)
   at SourceForge.NAnt.Target.Execute()
   at SourceForge.NAnt.Target.Execute()
   at SourceForge.NAnt.Target.Execute()
   at SourceForge.NAnt.Project.Execute(String targetName)
   at SourceForge.NAnt.Project.Execute()
   at SourceForge.NAnt.Project.Run()
Please send bug report to [EMAIL PROTECTED]


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete
the original.  Any other use of the email by you is prohibited.



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-developers mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to