It sounds like the main difficulty is that your coworker is trying to prune
the Gallio installation too far and is missing essential files.  All it
should take is to add a directive to import the Gallio.NAntTasks and then
use the <gallio> task.  We should probably put step-by-step documentation
about this on the wiki.

(I really wish .Net supported custom "class loaders" like Java so that we
could package up all of the plugin resources into neat little archives.)

Jeff.

On Fri, Apr 30, 2010 at 8:08 AM, Philip Japikse <[email protected]>wrote:

> Does anyone have good instructions for running gallio from Nant?  Coworker
> is having issues (I don't use nant, so I'm not sure where to point him).
>
> Thanks!
>
> Phil
>
>
> Philip Japikse, MVP, MCSD, MCDBA, CSM, CSP
> Principal Consultant, Pinnacle Solutions Group, Inc.
> [email protected] | www.twitter.com/skimedic | (513) 312-5664
> https://mvp.support.microsoft.com/profile/Japikse
> www.skimedic.com/blog
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Friday, April 30, 2010 9:18 AM
> To: Philip Japikse
> Subject: RE: run Gallio from NAnt?
>
> I've include two images that contain the error message.
> The files in the mbunit folder that is being referenced:
>  Gallio.dll
>  MbUnit.dll
>  Gallio.Echo.exe
>  Gallio.NAntTasks.dll
>
> run as exec:
>  <target name="run" depends="build">
>    <exec program="Gallio.Echo.exe"
>          basedir="${dir_Gallio.Echo}"
>          workingdir="${dir_reports}">
>      <arg value="/report-name-format:test-report" />
>      <arg value="/report-type:Text" />
>      <arg value="${dir_deploy}\${project_name}.dll" />
>    </exec>
>  </target>
>
> run as nant task:
>  <target name="load_tasks">
>      <loadtasks
> assembly="${dir_app_parent}\devtools\mbunit\Gallio.NAntTasks.dll"  />
>      <call target="run" />
>  </target>
>
>  <target name="run_as_nant" depends="build">
>    <call target="load_tasks" />
>    <gallio working-directory="${dir_deploy}"
>            failonerror="true">
>      <files>
>        <include name="${dir_deploy}\${project_name}.dll" />
>      </files>
>    </gallio>
>  </target>
>
> -----Original Message-----
> From: "Philip Japikse" <[email protected]>
> Sent: Thursday, April 29, 2010 5:33pm
> To: [email protected]
> Subject: RE: run Gallio from NAnt?
>
> Look at gallio.nanttasks.dll. there's an example xml script as well.
>
> http://www.gallio.org/api/html/T_Gallio_NAntTasks_GallioTask.htm
>
> you should only need that dll plus the gallio and mbunit dlls.
>
> http://ccnet.gallio.org/Distributables/ has the latest builds
>
>
> Phil
>
>
> Philip Japikse, MVP, MCSD, MCDBA, CSM, CSP Principal Consultant, Pinnacle
> Solutions Group, Inc.
> [email protected] | www.twitter.com/skimedic | (513) 312-5664
> https://mvp.support.microsoft.com/profile/Japikse
> www.skimedic.com/blog
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Thursday, April 29, 2010 5:13 PM
> To: Phil Japikse
> Subject: RE: run Gallio from NAnt?
>
> It's a build for Gallio?
> What's the purpose of the build task?
>
> -----Original Message-----
> From: "Phil Japikse" <[email protected]>
> Sent: Thursday, April 29, 2010 5:02pm
> To: "Haskamp, Mark" <[email protected]>
> Subject: RE: run Gallio from NAnt?
>
> There should be a build task included. Also, there is a bug that i worked
> through with the team that will get a patch released tonight or tomorrow.
> Look for the 424 build (i think)
>
> Philip Japikse
> Microsoft MVP, MCSD, MCDBA, CSM, CSP
> (513) 312-5664
> www.skimedic.com/blog
> www.twitter.com/skimedic
> (sent from mobile)
>
> -----Original Message-----
> From: [email protected]
> Sent: Thursday, April 29, 2010 15:58
> To: PinnSG <[email protected]>
> Subject: run Gallio from NAnt?
>
> Anybody run Gallio from a NAnt task, either via an <exec> task or the
> <gallio> task?
>
> This works for me. Note the basedir:
>  <target name="run" depends="build">
>    <exec program="Gallio.Echo.exe"
>          basedir="C:\a_markrh\downloads\mbunit\bin"
>          workingdir="${dir_reports}">
>      <arg value="/report-name-format:test-report" />
>      <arg value="/report-type:Text" />
>      <arg value="${dir_deploy}\${project_name}.dll" />
>    </exec>
>  </target>
>
> This does not work. The difference is only the basedir:
>  <target name="run" depends="build">
>    <exec program="Gallio.Echo.exe"
>          basedir="c:\dev\SaltoWatinTest\devtools\mbunit\bin"
>          workingdir="${dir_reports}">
>      <arg value="/report-name-format:test-report" />
>      <arg value="/report-type:Text" />
>      <arg value="${dir_deploy}\${project_name}.dll" />
>    </exec>
>  </target>
>
>
> The ...\downloads\mbunit\bin directory contains the complete Gallio/MbUnit
> download. 1,022 files, 155 folders, 32MBb.
>
> I would like for the ...\devtools\mbunit\bin to contain only the subset of
> files that are needed to run Gallio.Echo.exe from the command line. I have
> no idea what that subset is. I've tried many combinations but with no luck.
>
> Any ideas?
>
> Thanks,
>
> Mark Haskamp
> Pinnacle Solutions Group, Inc.
> 513.304.5018 (c)
> 513.619.6323 (w)
>
>
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 04/29/10
> 02:27:00
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.814 / Virus Database: 271.1.1/2843 - Release Date: 04/30/10
> 07:34:00
>
> --
> You received this message because you are subscribed to the Google Groups
> "MbUnit.User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<mbunituser%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/mbunituser?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.

Reply via email to