Use ProcessorArchitecture property to detect 32-bit project

PlatformTarget can be empty, but ProcessorArchitecture is always set internally