Profile-Guided Optimization Error PG0096

Cannot determine windows system directory.

The compiler could not determine the location of the windows system directory.

In order for profile guided optimizations to work, the compiler needs access to the windows system directory to ensure it is loading the correct version of system DLLs.

To resolve, ensure that your windows installation is correct, and, if necessary, reinstall the operating system.