Add Static Library project template. - #402
Conversation
9dca0ab to
fb3989c
Compare
|
Scott Jones (@Scottj1s) When merging we should probably do this one first. Then I need to update the other PR to apply the same changes to the new project template before we can merge #403 and #404 |
| <Name>Static Library (C++/WinRT)</Name> | ||
| <Description>A project for a C++/WinRT Static Library that can be used by a Universal Windows Platform app</Description> | ||
| <ProjectType>VC</ProjectType> | ||
| <SortOrder>3000</SortOrder> |
There was a problem hiding this comment.
Note that for VS 2019, you'll also want to add an entry for this template into project-metadata.json, so that it shows up on keyword filters. I would use a sort order value there of maybe 215.5, so it shows up just beneath the runtime component project. Example PR:
https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/162259
There was a problem hiding this comment.
Cool, I'll submit that separate.
There was a problem hiding this comment.
Scott Jones (@Scottj1s) looks like I don't have permissions to create PRs there. Can I leave this part to you?
This PR adds a static library project with the same setup as those in the NuGetTest.sln.
Additionally I fixed a few cases where CX winmd generation was still enabled in other project templates.
There's additional setup required in the consuming project which I can't add to this project template. I think there might be ways for cppwinrt.exe to generate the correct module.g.cpp but since that's not available today, I'm not sure how to communicate this. Thoughts?