diff --git a/nuget/Microsoft.Windows.CppWinRT.targets b/nuget/Microsoft.Windows.CppWinRT.targets index a297258f3..3d1328f64 100644 --- a/nuget/Microsoft.Windows.CppWinRT.targets +++ b/nuget/Microsoft.Windows.CppWinRT.targets @@ -447,7 +447,7 @@ namespace $(RootNamespace) - <_PCH>@(ClCompile->Metadata('PrecompiledHeaderFile')->Distinct()) + <_PCH Condition="'%(CLCompile.PrecompiledHeader)' != 'NotUsing'">@(ClCompile->Metadata('PrecompiledHeaderFile')->Distinct()) #include "$(_PCH)" // This file is generated by the build to support Xaml apps