Hi, thanks for posting!
Because NCrunch sandboxes each project in a separate dynamically assigned location, there won't be a single path that you can use to reference this assembly if it exists as a project within your solution.
If it is merely a referenced assembly (and not a project), the best way is to ensure the reference exists in a path that can be resolved relative to the project referencing it, then make sure it is included using the
additional files to include configuration setting. You can then load the assembly using the relative path.
If the loaded assembly is also a project within your solution, things get a little more complicated. One way you can find the project output assembly as built by NCrunch is by adding a project reference to its source project from your test project, then using typeof(ClassWithinReferencedProject).Assembly.Location to find the assembly at runtime. Of course, this will automatically load the assembly into your application domain automatically, so it probably won't be great for testing the Assembly.LoadFrom call. Alternatively, you can look into using the methods available on the NCrunchFramework class to find the assembly using information provided by NCrunch. You can find an example of this in the
tests that build their own appdomains example.