Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Dynamic code dll references not being found
SamuelDavis
#1 Posted : Sunday, December 9, 2012 7:48:18 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/9/2012(UTC)
Posts: 1
Location: New Zealand

The project I am currently working on needs to dynamically generate classes using ClassBuilder. I have gotten this project to work through nunit as it is able to see the dll that the dynamic class needs joined, I have also gotten this project to work through a webservice by grabbing the working directory (var path = AppDomain.CurrentDomain.BaseDirectory;).

As NCrunch is very new, I am unable to find any resources on how to gather up the dll's needed in one spot so that the dynamically built class can see them.

I assumed that "Add additional files" in the settings menu would work, but this is to no avail.

Could anyone give me any direction as to how to get my project working with ncrunch?

Thank you,
Samuel Davis
Remco
#2 Posted : Sunday, December 9, 2012 8:26:47 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Samuel -

You have a few options for how you can do this. There's an example in the documentation that describes how to use reflection to find assemblies in the NCrunch test environment. You can also use the Copy referenced assemblies to workspace configuration option, but note that this will slow your build times considerably.

I hope this helps!


Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download