| title | MSBuild diagnostic code MSB8088 | |
|---|---|---|
| description | MSBuild diagnostic code MSB8088 occurs when the /dynamicdeopt and whole program optimization /GL are set. | |
| ms.date | 03/14/2025 | |
| ms.topic | error-reference | |
| f1_keywords |
|
|
| dev_langs |
|
|
| author | tylerMSFT | |
| ms.author | twhitney | |
| ms.manager | coxford | |
| ms.subservice | msbuild |
MSB8088: Dynamic debugging and whole program optimization are incompatible. Disabling whole program optimization.
When you turn on C++ Dynamic Debugging (Preview), the build automatically turns off whole program optimization (compiler switch /GL). These two options are incompatible.
To resolve this issue, turn off whole program optimization in the project properties by setting Configuration Properties > Advanced > Whole Program Optimization to Off. For more information, see General Property Page (Project).
MSB8088 is treated as a warning, but may be treated as an error in a future version of Visual Studio.