Are include files included in your own source code or in third-party DLL assemblies?
If they are your own sources, then you can easily use conditional compilation to remove the “simulated” code from your release build, just like you did in your example (just replace “include” with “using”). This usually applies to debug classes.
If you do not "control" the source code for inclusions, then you can still add a link to the project, but if you conditionally compile all the code that uses the assembly, your application will never try to access the assembly, so it does not need to be present at startup code.
(Another possibility that seems less useful to you is to write the version of the “dummy” reference assembly that you send instead of the “real” one, or a proxy server that calls the real third-party DLL in the simulated assemblies Only if it provides public classes and methods, which you call, you can send the layout, not the simulated assembly to your customers)
source share