I am able to easily exclude a DLL reference from a WPF project based on the configuration with a .csproj that looks like this:
.csproj