diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets
index 27fdd6e29b8bc2..9492cff2d8c3ea 100644
--- a/PCbuild/regen.targets
+++ b/PCbuild/regen.targets
@@ -101,7 +101,8 @@
+ Condition="($(Platform) == 'Win32' or $(Platform) == 'x64') and
+ $(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'">
@@ -121,7 +122,5 @@
-
+