I want to be able to have a solution where

  1. Project A does NOT reference project B
  2. I hit build all building both project A and project B
  3. Project A is run and dynamically loads the DLL built in 2. via Assembly.Load
  4. There is a breakpoint in project B in which the IL associated with it gets run

Is this possible?

1

There are 1 answers

0
JonasH On

Sure, this should be possible. You probably need some post-build script to move the projectB-dll and all dependencies to the build folder of project A, or some configuration to specify where the dll should be loaded from.

I'm not sure what you are referring to with your last point, but I would not expect the debugger to have any problems locating the debug symbols or corresponding source code in this case. If you are moving the dlls files you should probably also move the corresponding pdb files to ensure they can be loaded correctly.