WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

C++ templates should be updated to avoid calling InitializeComponent from constructors

Open Scottj1s opened this issue 2 years ago • 2 comments

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

  1. Create new C++ project from WinAppSDK template.
  2. 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

Scottj1s avatar Oct 30 '23 16:10 Scottj1s

Already done in 1.4 stable? See #3745.

jaigak avatar Nov 03 '23 11:11 jaigak

@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.

DarranRowe avatar Nov 05 '23 15:11 DarranRowe