diff --git a/SdkVersion.props b/SdkVersion.props index eb698d24a0..89cec08929 100644 --- a/SdkVersion.props +++ b/SdkVersion.props @@ -6,10 +6,13 @@ 10.0.16299.0 10.0.17134.0 10.0.17763.0 - 10.0.18362.0 - 10.0.21290.0 + 10.0.18362.0 + 10.0.21290.0 + 10.0.21290.0 + false + $(SDKVersion19H1) diff --git a/dev/CommonStyles/CommonStyles.vcxitems b/dev/CommonStyles/CommonStyles.vcxitems index 88c97f62ba..8e8b70ea5f 100644 --- a/dev/CommonStyles/CommonStyles.vcxitems +++ b/dev/CommonStyles/CommonStyles.vcxitems @@ -136,7 +136,7 @@ LatestWithVisualUpdate - RS1 + 21H1 ThemeResources true @@ -148,7 +148,7 @@ LatestWithVisualUpdate - RS1 + 21H1 ThemeResources true diff --git a/dev/dll/Microsoft.UI.Xaml.vcxproj b/dev/dll/Microsoft.UI.Xaml.vcxproj index 80080e6618..21a7caa636 100644 --- a/dev/dll/Microsoft.UI.Xaml.vcxproj +++ b/dev/dll/Microsoft.UI.Xaml.vcxproj @@ -80,7 +80,7 @@ - + UseLatestWithVisualUpdateStyle _vu @@ -350,7 +350,7 @@ - + + + Designer + true + Themes\%(Filename)%(Extension) + $(MinSDKVersionRequiredFor21H1ThemeResource) - + + + Designer + true + Themes\%(Filename)%(Extension) + $(MinSDKVersionRequiredFor21H1ThemeResource) Designer @@ -532,7 +544,7 @@ - true + true true @@ -631,12 +643,14 @@ + + @@ -646,12 +660,14 @@ + + Outputs="$(OutDir)Generic.xaml;$(OutDir)rs1_generic.xaml;$(OutDir)rs2_generic.xaml;$(OutDir)rs3_generic.xaml;$(OutDir)rs4_generic.xaml;$(OutDir)rs5_generic.xaml;$(OutDir)19h1_generic.xaml;$(OutDir)rs1_generic_2dot5.xaml;$(OutDir)rs2_generic_2dot5.xaml;$(OutDir)rs3_generic_2dot5.xaml;$(OutDir)rs4_generic_2dot5.xaml;$(OutDir)rs5_generic_2dot5.xaml;$(OutDir)19h1_generic_2dot5.xaml;"> + TlogReadFilesOutputPath="$(TLogLocation)GenerateGenericResourceFile1%(MergeXamlConfig.Postfix).read.1u.tlog" + TlogWriteFilesOutputPath="$(TLogLocation)GenerateGenericResourceFile1%(MergeXamlConfig.Postfix).write.1u.tlog" /> + + + + + + + + + Outputs="$(OutDir)rs1_themeresources.xaml;$(OutDir)rs2_themeresources.xaml;$(OutDir)rs3_themeresources.xaml;$(OutDir)rs4_themeresources.xaml;$(OutDir)rs5_themeresources.xaml;$(OutDir)19h1_themeresources.xaml;$(OutDir)rs1_themeresources_2dot5.xaml;$(OutDir)rs2_themeresources_2dot5.xaml;$(OutDir)rs3_themeresources_2dot5.xaml;$(OutDir)rs4_themeresources_2dot5.xaml;$(OutDir)rs5_themeresources_2dot5.xaml;$(OutDir)19h1_themeresources_2dot5.xaml;"> + TlogReadFilesOutputPath="$(TLogLocation)GenerateThemeResourceFile1%(MergeXamlConfig.Postfix).read.1u.tlog" + TlogWriteFilesOutputPath="$(TLogLocation)GenerateThemeResourceFile1%(MergeXamlConfig.Postfix).write.1u.tlog" /> + + + + + + + + Outputs="$(OutDir)rs1_compact_themeresources.xaml;$(OutDir)rs2_compact_themeresources.xaml;$(OutDir)rs3_compact_themeresources.xaml;$(OutDir)rs4_compact_themeresources.xaml;$(OutDir)rs5_compact_themeresources.xaml;$(OutDir)19h1_compact_themeresources.xaml;$(OutDir)rs1_compact_themeresources_2dot5.xaml;$(OutDir)rs2_compact_themeresources_2dot5.xaml;$(OutDir)rs3_compact_themeresources_2dot5.xaml;$(OutDir)rs4_compact_themeresources_2dot5.xaml;$(OutDir)rs5_compact_themeresources_2dot5.xaml;$(OutDir)19h1_compact_themeresources_2dot5.xaml;"> + + + + + + + + + + TlogReadFilesOutputPath="$(TLogLocation)GenerateCompactThemeResourceFile2%(MergeXamlConfig.Postfix).read.1u.tlog" + TlogWriteFilesOutputPath="$(TLogLocation)GenerateCompactThemeResourceFile2%(MergeXamlConfig.Postfix).write.1u.tlog" /> + + + + + + diff --git a/dev/dll/XamlControlsResources.cpp b/dev/dll/XamlControlsResources.cpp index c66e8e88c0..148f9562a9 100644 --- a/dev/dll/XamlControlsResources.cpp +++ b/dev/dll/XamlControlsResources.cpp @@ -76,7 +76,11 @@ void XamlControlsResources::UpdateSource() hstring releasePrefix; - if (is19H1OrHigher) + if (isVisualUpdateAvailable) + { + releasePrefix = L"21h1_"; + } + else if (is19H1OrHigher) { releasePrefix = L"19h1_"; } @@ -189,7 +193,11 @@ void SetDefaultStyleKeyWorker(winrt::IControlProtected const& controlProtected, if (isInFrameworkPackage) { - if (is19H1OrHigher) + if (isVisualUpdateAvailable) + { + releasePrefix = L"ms-appx://" MUXCONTROLS_PACKAGE_NAME "/" MUXCONTROLSROOT_NAMESPACE_STR "/Themes/21h1_"; + } + else if (is19H1OrHigher) { releasePrefix = L"ms-appx://" MUXCONTROLS_PACKAGE_NAME "/" MUXCONTROLSROOT_NAMESPACE_STR "/Themes/19h1_"; } @@ -212,7 +220,11 @@ void SetDefaultStyleKeyWorker(winrt::IControlProtected const& controlProtected, } else if (isInCBSPackage) { - if (is19H1OrHigher) + if (isVisualUpdateAvailable) + { + releasePrefix = L"ms-appx://" MUXCONTROLS_CBS_PACKAGE_NAME "/" MUXCONTROLSROOT_NAMESPACE_STR "/Themes/21h1_"; + } + else if (is19H1OrHigher) { releasePrefix = L"ms-appx://" MUXCONTROLS_CBS_PACKAGE_NAME "/" MUXCONTROLSROOT_NAMESPACE_STR "/Themes/19h1_"; } @@ -224,7 +236,11 @@ void SetDefaultStyleKeyWorker(winrt::IControlProtected const& controlProtected, } else { - if (is19H1OrHigher) + if (isVisualUpdateAvailable) + { + releasePrefix = L"ms-appx:///" MUXCONTROLSROOT_NAMESPACE_STR "/Themes/21h1_"; + } + else if (is19H1OrHigher) { releasePrefix = L"ms-appx:///" MUXCONTROLSROOT_NAMESPACE_STR "/Themes/19h1_"; } diff --git a/mux.controls.props b/mux.controls.props index ff0f8131e5..0adf3e3f8a 100644 --- a/mux.controls.props +++ b/mux.controls.props @@ -26,8 +26,9 @@ $(SDKVersionRS2) $(SDKVersionRS3) $(SDKVersionRS4) - $(MuxSdkVersion) - $(MuxSdkVersion) + $(SDKVersion19H1) + $(SDKVersion19H1) + $(SDKVersion21H1) diff --git a/tools/CustomTasks/BatchMergeXaml.cs b/tools/CustomTasks/BatchMergeXaml.cs index ef9f76a6f6..98f7d7e3e5 100644 --- a/tools/CustomTasks/BatchMergeXaml.cs +++ b/tools/CustomTasks/BatchMergeXaml.cs @@ -29,6 +29,9 @@ public class BatchMergeXaml : Task [Required] public ITaskItem[] N19H1Pages { get; set; } + //[Required] + //public ITaskItem[] T21H1Pages { get; set; } + [Required] // The output file format is like rs1_themeresources.xaml, rs2_generic.xaml, rs2_compact_generic.xaml. // then PostfixForGeneratedFile is themeresources/generic/compact_generic here. @@ -146,6 +149,7 @@ public override bool Execute() ExecuteForTaskItems(RS4Pages, "RS4"); ExecuteForTaskItems(RS5Pages, "RS5"); ExecuteForTaskItems(N19H1Pages, "19H1"); + //ExecuteForTaskItems(T21H1Pages, "21H1"); } var filesRead = new List(); @@ -155,6 +159,7 @@ public override bool Execute() filesRead.AddRange(RS4Pages.Select(item => item.ItemSpec)); filesRead.AddRange(RS5Pages.Select(item => item.ItemSpec)); filesRead.AddRange(N19H1Pages.Select(item => item.ItemSpec)); + //filesRead.AddRange(T21H1Pages.Select(item => item.ItemSpec)); File.WriteAllLines(TlogReadFilesOutputPath, filesRead);