In my codebase there's a utility project of type lib: MyCode.Utility with TargetPlatform set to AnyCPU in its *.csproj file.
The project is then referenced by an executable, which also targets AnyCPU.
Now I need to introduce a new exe project to my codebase and due to its dependencies it has to target x64 only instead of AnyCPU. I would also like the new project to reference MyCode.Utility.
How shall I configure my projects? In particular I'd like to ensure that my shared library is compiled to the right target, depending on which executable triggers the compilation.