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

Notification

Icon
Error

Assembly.LoadFrom requires explicit copy?
GreenMoose
#1 Posted : Wednesday, December 19, 2012 3:26:02 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 503

Thanks: 142 times
Was thanked: 66 time(s) in 64 post(s)
If I use
Assembly.LoadFrom("My.Referenced.Project.dll");
in a test, where the test assembly has this project referenced, do I need to explicitly include this dll in assemblies to copy for the NCrunch configuration, or can I somehow get the assembly loaded in a better way?
Remco
#2 Posted : Wednesday, December 19, 2012 8:15:16 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi,

Specifying the references to the DLL using the NCrunch configuration is possible using the 'Copy referenced assemblies to workspace' setting, but this isn't recommended because it will constrain the engine and make it work slower. There's a page in the documentation that describes how you can deal with this kind of situation. Basically, you can use the metadata in the runtime application domain to find the assembly's location in the NCrunch workspace.
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.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download