This SO question Force system with nVidia Optimus to use the real GPU for my application? explains how to indicate to NVIDIA drivers to use NVIDIA GPU instead of IGP in an application.
The trouble is, my application is a .NET app and I don't know if there's any way of exporting a global variable with a .NET executable.
How do I achieve the same effect as the SO question above in .NET? e.g. Is there a workaround where I could modify the EXE post build to add that global variable export?