diff --git a/VSIX/DevWinUI_Template/DevWinUI_Template/Common/PredefinedCodes.cs b/VSIX/DevWinUI_Template/DevWinUI_Template/Common/PredefinedCodes.cs index fac373d..5d3f1eb 100644 --- a/VSIX/DevWinUI_Template/DevWinUI_Template/Common/PredefinedCodes.cs +++ b/VSIX/DevWinUI_Template/DevWinUI_Template/Common/PredefinedCodes.cs @@ -174,17 +174,11 @@ private async void NavigateToLogPath_Click(object sender, RoutedEventArgs e) } """"; - public static readonly string SetPackagedAppTaskId = -"""" - // If you are using UnPackaged app, remove this line and StartupTask from Package.appxmanifest file. - StartupHelper.SetTaskIdForPackagedApp("$safeprojectname$StartOnLoginTask"); -""""; - public static readonly string StartupTask = """" - + """"; @@ -192,7 +186,7 @@ private async void NavigateToLogPath_Click(object sender, RoutedEventArgs e) public static readonly string StartupTaskInContextMenu = """" - + """"; } diff --git a/VSIX/DevWinUI_Template/DevWinUI_Template/TemplateWizard/SharedWizard.cs b/VSIX/DevWinUI_Template/DevWinUI_Template/TemplateWizard/SharedWizard.cs index 18b142e..37131ad 100644 --- a/VSIX/DevWinUI_Template/DevWinUI_Template/TemplateWizard/SharedWizard.cs +++ b/VSIX/DevWinUI_Template/DevWinUI_Template/TemplateWizard/SharedWizard.cs @@ -426,7 +426,6 @@ private void AddReplacementsDictionary(Dictionary replacementsDi if (WizardConfig.IsUnPackagedMode) { replacementsDictionary.Add("$WindowsPackageType$", "None"); - replacementsDictionary.Add("$PackagedAppTaskId$", ""); replacementsDictionary.Add("$UAP5$", ""); replacementsDictionary.Add("$StartupTask$", ""); } @@ -436,8 +435,6 @@ private void AddReplacementsDictionary(Dictionary replacementsDi if (WizardConfig.UseGeneralSettingPage && WizardConfig.UseStartupSetting) { - var content = PredefinedCodes.SetPackagedAppTaskId.Replace("$safeprojectname$", SafeProjectName); - replacementsDictionary.Add("$PackagedAppTaskId$", content); replacementsDictionary.Add("$UAP5$", Environment.NewLine + " xmlns:uap5=\"http://schemas.microsoft.com/appx/manifest/uap/windows10/5\""); if (WizardConfig.UseWindow11ContextMenu) @@ -453,7 +450,6 @@ private void AddReplacementsDictionary(Dictionary replacementsDi } else { - replacementsDictionary.Add("$PackagedAppTaskId$", ""); replacementsDictionary.Add("$UAP5$", ""); replacementsDictionary.Add("$StartupTask$", ""); } diff --git a/VSIX/DevWinUI_Template/DevWinUI_Template/source.extension.vsixmanifest b/VSIX/DevWinUI_Template/DevWinUI_Template/source.extension.vsixmanifest index 6e20352..4ccce51 100644 --- a/VSIX/DevWinUI_Template/DevWinUI_Template/source.extension.vsixmanifest +++ b/VSIX/DevWinUI_Template/DevWinUI_Template/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + DevWinUI Templates for WinUI DevWinUI Project Template, help you quickly create a new WinUI 3 App with DevWinUI and MVVM Packages. We prepare your project with the following features: NavigationView, Custom TitleBar, HomeLandingPage and Settings Page (with Theme settings). We also always use the latest version of WindowsAppSDK. diff --git a/VSIX/DevWinUI_Template/WinUIApp-MVVM-NavigationView/App.xaml.cs b/VSIX/DevWinUI_Template/WinUIApp-MVVM-NavigationView/App.xaml.cs index 8854569..7e1d8a8 100644 --- a/VSIX/DevWinUI_Template/WinUIApp-MVVM-NavigationView/App.xaml.cs +++ b/VSIX/DevWinUI_Template/WinUIApp-MVVM-NavigationView/App.xaml.cs @@ -51,7 +51,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs args) private $AsyncKeyword$void InitializeApp() { - $PackagedAppTaskId$$Windows11ContextMenuMVVMInitializer$$ConfigLogger$$UnhandeledException$ + $Windows11ContextMenuMVVMInitializer$$ConfigLogger$$UnhandeledException$ } } diff --git a/VSIX/DevWinUI_Template/WinUIApp-NavigationView/App.xaml.cs b/VSIX/DevWinUI_Template/WinUIApp-NavigationView/App.xaml.cs index 1abd427..1bfe302 100644 --- a/VSIX/DevWinUI_Template/WinUIApp-NavigationView/App.xaml.cs +++ b/VSIX/DevWinUI_Template/WinUIApp-NavigationView/App.xaml.cs @@ -29,7 +29,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs args) private $AsyncKeyword$void InitializeApp() { - $PackagedAppTaskId$$Windows11ContextMenuInitializer$$ConfigLogger$$UnhandeledException$ + $Windows11ContextMenuInitializer$$ConfigLogger$$UnhandeledException$ } }