Hi All,

as it happens I am getting exactly the same error as this. Strangely,
I have  nant build script that does the same thing and it works fine.
As I am currently exploring TFS integration, I took a look MSBUILD to
fulfill this task.

The only thing I havent tried is executing this as a command, however
I would be very pleased to hear from anyone who has overcome this
issue.

Cheers
-
Karym6

On Oct 9, 2:38 pm, "AC [MVP MOSS]" <[EMAIL PROTECTED]> wrote:
> I figured the same and tried that... no luck :(
>
> The test assembly is super simple. Created one class lib that has
> nothing but an Add() method in it. the other assembly references the
> first and contains the tests. Runs fine in the console & GUI :(
>
> Is the MSBuild integration working? I know in previous builds it
> wasn't and this was the first test I did since the latest drop.
>
> -AC
>
> On Oct 8, 7:18 pm, Jeff Brown <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm not sure it's having trouble loading QuickGraph since it's
> > apparently already executing that code.
>
> > My guess is that it's actually having trouble loading your test
> > assemblies or possibly something your test assemblies depend on.
> > Perhaps it can't resolve the relative path.  I don't know.  Out of
> > curiosity, could you try running the MbUnit MSBuild task using an
> > absolute path?
>
> > eg.  <MbUnit Assemblies="@(TestAssemblies->'%(FullPath)')" ... />
>
> > Jeff.
>
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED]
>
> > On Behalf Of AC [MVP MOSS]
> > Sent: Wednesday, October 03, 2007 9:15 AM
> > To: MbUnit.User
> > Subject: MbUnit MSBuild integreation
>
> > I posted a message about this a while back, but was trying to get it
> > working with the latest drop today (v2.4) and running into issues again.
> > I've followed the doc instructions on adding it for my project, but when
> > I run it I have issues loading the assemblies (I see it runs fine in the
> > output window when setting the report type and name...):
>
> >     C:\Development\Scratch\ClassLibrary3\ClassLibrary3.csproj(53,5):
> > error : Unexpected failure during MbUnit execution
> >     C:\Development\Scratch\ClassLibrary3\ClassLibrary3.csproj(53,5):
> > error : Failed loading assemblies
> >     C:\Development\Scratch\ClassLibrary3\ClassLibrary3.csproj(53,5):
> > error :    at
> > MbUnit.Core.Graph.TestDomainDependencyGraph.BuildGraph(String[]
> > testAssemblies, String[] assemblyPaths, IFixtureFilter fixtureFilter,
> > IRunPipeFilter runPipeFilter, Boolean verbose)
> >     C:\Development\Scratch\ClassLibrary3\ClassLibrary3.csproj(53,5):
> > error :    at
> > MbUnit.Core.Graph.TestDomainDependencyGraph.BuildGraph(String[]
> > testAssemblies, String[] assemblyPaths, IFixtureFilter fixtureFilter,
> > Boolean verbose)
> >     C:\Development\Scratch\ClassLibrary3\ClassLibrary3.csproj(53,5):
> > error :    at MbUnit.MSBuild.Tasks.MbUnit.InternalExecute()
> >     C:\Development\Scratch\ClassLibrary3\ClassLibrary3.csproj(53,5):
> > error :    at MbUnit.MSBuild.Tasks.MbUnit.Execute()
>
> > As you can see, it's having trouble loading the assemblies needed for
> > graphing. Any ideas here? Should this work in the latest drop?
>
> > Here's what my changes look like in the project file:
> >   <UsingTask TaskName="MbUnit.MsBuild.Tasks.MbUnit"
> >              AssemblyFile="C:\Program Files\MbUnit
> > \MbUnit.MSBuild.Tasks.dll" />
> >   <ItemGroup>
> >     <TestAssemblies Include="bin\debug\ClassLibrary3.dll" />
> >   </ItemGroup>
> >   <Target Name="AfterBuild">
> >     <MbUnit Assemblies="@(TestAssemblies)"
> >             ReportTypes="html"
> >             ReportOutputDirectory="." />
> >   </Target>
>
> > I've also verified that all four files are in the %programfiles% \MbUnit
> > folder and are being copied into the bin\debug of my project.- Hide quoted 
> > text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
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