Then, for another project that depends on this .fx, how can I set the project’s reference to either include debug .fx or release .fx, depending on the project’s active configuration (release or debug)? I am using Visual Studio 2017
Right now, you can’t, unless you use a project reference to the original project that generates the .fx — then it all pick the matching configuration automatically, if available.