WindowsAppSDK
WindowsAppSDK copied to clipboard
C++ templates should be updated to avoid calling InitializeComponent from constructors
Describe the bug
With this fix, the C++/WinRT templates were updated. The C++ Windows App SDK templates should be similarly updated.
Steps to reproduce the bug
- Create new C++ project from WinAppSDK template.
- Xaml constructors call InitializeComponent directly, which is unsafe.
Expected behavior
No response
Screenshots
No response
NuGet package version
Windows App SDK 1.4.2: 1.4.231008000
Packaging type
Unpackaged
Windows version
Windows 10 version 1809 (17763, October 2018 Update)
IDE
Visual Studio 2022
Additional context
No response
Already done in 1.4 stable? See #3745.
@JaiganeshKumaran Since the extension stopped being distributed independently of Visual Studio, the project templates are updated inline with Visual Studio itself. I only see this change in the 17.8 previews, 17.7.6 creates projects with the InitializeComponent call.