diff --git a/Directory.Build.props b/Directory.Build.props
index 678a9bb54f..6dfc4fe649 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -21,6 +21,19 @@
false
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
-
+
https://dev.azure.com/microsoft/ProjectReunion/_git/WindowsAppSDK
- e5cca86cae13e2d76d660b92c2887207ea0d7ae3
+ f729ae6e9a9d1db8022c4a2be28b93c399f95b8f
-
+
https://dev.azure.com/microsoft/LiftedIXP/_git/DCPP
- 2d8e71d8e93b54cebdbab98cf6c48d0393a303eb
+ ae2b1fa0e5de26d1f5cc3cdbc7ad03a96c110781
-
+
https://dev.azure.com/microsoft/LiftedIXP/_git/DCPP
- 2d8e71d8e93b54cebdbab98cf6c48d0393a303eb
+ ae2b1fa0e5de26d1f5cc3cdbc7ad03a96c110781
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.cs
index e426f41a95..fc137ac352 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.cs
@@ -30,6 +30,12 @@ public override string TransformText()
// the code is regenerated.
//------------------------------------------------------------------------------
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include ""winrt/");
this.Write(this.ToStringHelper.ToStringWithCulture(KnownNamespaces.Xaml));
this.Write(".h\"\r\n#include \"winrt/");
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.tt b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.tt
index 3cf823cd99..9962bb30c6 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.tt
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_AppPass1.tt
@@ -8,6 +8,12 @@
// the code is regenerated.
//------------------------------------------------------------------------------
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include "winrt/<#=KnownNamespaces.Xaml#>.h"
#include "winrt/<#=KnownNamespaces.XamlMarkup#>.h"
#include "winrt/<#=KnownNamespaces.XamlInterop#>.h"
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.cs
index adc190e204..48600605cb 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.cs
@@ -32,6 +32,12 @@ public override string TransformText()
//------------------------------------------------------------------------------
#pragma once
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include ""winrt/windows.foundation.h""
#include ""winrt/windows.ui.xaml.interop.h""
#include ""winrt/microsoft.ui.xaml.controls.h""
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.tt b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.tt
index bf30d1c781..20f4b187f6 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.tt
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_BindingInfoPass1.tt
@@ -10,6 +10,12 @@
//------------------------------------------------------------------------------
#pragma once
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include "winrt/windows.foundation.h"
#include "winrt/windows.ui.xaml.interop.h"
#include "winrt/microsoft.ui.xaml.controls.h"
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.cs
index fbed3dc99e..7f382895e2 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.cs
@@ -22,7 +22,8 @@ internal partial class CppWinRT_PagePass1 : CppWinRT_CodeGenerator
public override string TransformText()
{
- this.Write(@"//------------------------------------------------------------------------------
+ this.Write(@"
+//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
@@ -30,6 +31,12 @@ public override string TransformText()
//------------------------------------------------------------------------------
#pragma once
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
");
foreach (var includeFile in Model.NeededCppWinRTProjectionHeaderFiles) {
this.Write("#if __has_include(<");
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.tt b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.tt
index cb5bc19a1c..d81e4bde8f 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.tt
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_PagePass1.tt
@@ -1,5 +1,6 @@
<#@ template language="C#" inherits="CppWinRT_CodeGenerator" visibility="internal" linePragmas="false"#>
<#@ assembly name="System.Core" #>
+
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
@@ -8,6 +9,12 @@
//------------------------------------------------------------------------------
#pragma once
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
<# foreach (var includeFile in Model.NeededCppWinRTProjectionHeaderFiles) { #>
#if __has_include(<<#=includeFile#>>)
#include <<#=includeFile#>>
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.cs
index f8bf202f52..a2136c76d3 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.cs
@@ -38,6 +38,10 @@ public override string TransformText()
#include
#include
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include
#include
#include ""winrt/");
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.tt b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.tt
index 7013ea2fd2..63be8ef1be 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.tt
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1.tt
@@ -16,6 +16,10 @@
#include
#include
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include
#include
#include "winrt/<#=KnownNamespaces.Xaml#>.h"
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.cs
index 5a7317d3ab..88c92637b9 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.cs
@@ -42,6 +42,11 @@ public override string TransformText()
#include
#include
#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include ""winrt/windows.foundation.h""
#include ""winrt/windows.ui.xaml.interop.h""
#include ""winrt/microsoft.ui.xaml.markup.h""
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.tt b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.tt
index 12996b337b..7729de2fa0 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.tt
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass1Impl.tt
@@ -17,6 +17,11 @@
#include
#include
#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
+
#include "winrt/windows.foundation.h"
#include "winrt/windows.ui.xaml.interop.h"
#include "winrt/microsoft.ui.xaml.markup.h"
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.cs
index 4d32caea59..c17dd0530d 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.cs
@@ -40,7 +40,8 @@ public override string TransformText()
this.Write(this.ToStringHelper.ToStringWithCulture(ProjectInfo.PrecompiledHeaderFile));
this.Write("\"\r\n");
}
- this.Write("#include \r\n\r\n");
+ this.Write("#include \r\n#include \r\n\r\n// Undefine GetCurrentTime macro to pre" +
+ "vent\r\n// conflict with Storyboard::GetCurrentTime\r\n#undef GetCurrentTime\r\n\r\n");
foreach (var includeFile in Model.NeededCppWinRTProjectionHeaderFiles) {
this.Write("#if __has_include(<");
this.Write(this.ToStringHelper.ToStringWithCulture(includeFile));
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.tt b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.tt
index eabc1474b6..155c6e7ad9 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.tt
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_TypeInfoPass2.tt
@@ -16,6 +16,11 @@
#include "<#=ProjectInfo.PrecompiledHeaderFile#>"
<# }#>
#include
+#include
+
+// Undefine GetCurrentTime macro to prevent
+// conflict with Storyboard::GetCurrentTime
+#undef GetCurrentTime
<# foreach (var includeFile in Model.NeededCppWinRTProjectionHeaderFiles) { #>
#if __has_include(<<#=includeFile#>>)
diff --git a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_XamlMetaDataProviderPass1.cs b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_XamlMetaDataProviderPass1.cs
index 267fd070a5..3618aa9eac 100644
--- a/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_XamlMetaDataProviderPass1.cs
+++ b/src/XamlCompiler/BuildTasks/Microsoft/Xaml/XamlCompiler/CodeGenerators/CppWinRT/CppWinRT_XamlMetaDataProviderPass1.cs
@@ -35,6 +35,11 @@ public override string TransformText()
#include
#include