-
Notifications
You must be signed in to change notification settings - Fork 262
Add Static Library project template. #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Static Library project template. #402
Conversation
9dca0ab to
fb3989c
Compare
vsix/ProjectTemplates/VC/Windows Universal/StaticLibrary/PropertySheet.props
Outdated
Show resolved
Hide resolved
| <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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I'll submit that separate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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?