First
embedding vs.
referencing.
If you want to be able to use classes in the EXE as if it were a DLL, then you want to
reference it.
If you want to include the EXE as a resource inside your application, perhaps so you can redistribute it on the client, then you want to
embed it.
I think you mean
reference.
The instructions that you are following is the correct way to reference
a managed executable. A
managed executable[
^] is one that was created using
a .NET language[
^] and compiled to
CIL[
^].
I have a feeling that you are trying to reference an EXE that is not managed code. This is possible, but is very different, and uses
native interop.