microsoft / cppwinrt

C++/WinRT
MIT License
1.64k stars 236 forks source link

VS Template: WindowsTargetPlatformMinVersion not set properly when using Console App C++/WinRT Template #1327

Closed Psychlist1972 closed 1 year ago

Psychlist1972 commented 1 year ago

Version

No response

Summary

When creating the project, you are prompted for target and minimum versions, but only the WindowsTargetPlatformVersion property of the project gets set. You have to manually change the min version. The min version defaults to some other number.

Excerpt from a project file where I had specified 10.0.20348 for both target and minimum when prompted.

<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.20348.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.17134.0</WindowsTargetPlatformMinVersion>

Reproducible example

No response

Expected behavior

No response

Actual behavior

No response

Additional comments

No response

kennykerr commented 1 year ago

I've tagged a few project maintainers. If one of them is available to offer guidance and mentorship for this issue, they will reach out according to the contributing guide to discuss and agree on an approach.

https://github.com/orgs/microsoft/teams/cppwinrt-maintainers

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days.