microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.68k stars 457 forks source link

Update to WinAppSDK 1.2 and WinUIEx 2.0 #4611

Closed mikebattista closed 1 year ago

mikebattista commented 1 year ago

Describe the bug

Update to the latest releases.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Additional context

No response

Applies to the following platforms:

About your setup

mikebattista commented 1 year ago

WinUIEx 2.0 has a bug that causes unpackaged apps to crash when using PersistenceId. Need to update to a newer version with the fix when it's ready.

SoftEntwickler commented 1 year ago

Even WinUIEx 2.1 does not work in unpackaged(None) apps. As I can see WinUIEx uses Windows.Storage.ApplicationData.Current.LocalSettings for saving and loading window size and position. But unpackaged apps can't use Windows.Storage.ApplicationData.Current.LocalSettings.

mikebattista commented 1 year ago

@dotmorten is that true?

dotMorten commented 1 year ago

No, see https://github.com/dotMorten/WinUIEx/issues/95#issuecomment-1371022131

SoftEntwickler commented 1 year ago

Then the TemplateStudio needs to be updated to use WinUIEx.WindowManager.PersistenceStorage, right?

dotMorten commented 1 year ago

@SoftEntwickler yes. This feature was specifically added last week by request of template studio - give them a chance to catch up.