Skip to content
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

Build Metadata option for C++/WinRT projects #1266

Closed
JaiganeshKumaran opened this issue Jan 30, 2023 · 6 comments
Closed

Build Metadata option for C++/WinRT projects #1266

JaiganeshKumaran opened this issue Jan 30, 2023 · 6 comments

Comments

@JaiganeshKumaran
Copy link
Contributor

JaiganeshKumaran commented Jan 30, 2023

Since C++/WinRT requires the use of IDL for authoring Windows Runtime types, changes in metadata are not immediately visible to C++ and XAML until the projection headers are updated, which happens after compiling IDL to WinMD and before compiling C++ source.

I'm finding it quite difficult to implement Windows Runtime types with this workflow because C++ and XAML IntelliSense only recognise the new changes in the component when the projection headers are updated. To make sure IntelliSense works, I start building the project every time after changing IDL and cancel it after WinMD is generated and C++ compilation just starts. Please consider providing an option to just build metadata and generate projection header, without building the entire project, through the C++/WinRT Visual Studio extension.

@kennykerr
Copy link
Collaborator

This repo is for reporting issues (bugs) with the cppwinrt.exe compiler/library. For API or IDE questions please see the options here: https://github.com/microsoft/cppwinrt/issues/new/choose

@JaiganeshKumaran
Copy link
Contributor Author

JaiganeshKumaran commented Jan 30, 2023

@kennykerr There doesn't seem to be an option for feature requests. Should I report it as Visual Studio feedback?

@kennykerr
Copy link
Collaborator

I'm not sure - if it's mostly about Xaml I'd go with Windows API question. If it's mostly about Visual Studio I'd go with Visual Studio question.

@asklar
Copy link
Member

asklar commented Jan 30, 2023

I think the feature being requested is to add a "Update project metadata" to the CppWinRT VSIX, that calls the build to perform only a couple of things not a full build.
Would feature requests to the VSIX not go into this repo @kennykerr ?

@kennykerr
Copy link
Collaborator

Would feature requests to the VSIX not go into this repo

Not if you want someone to work on that feature. 😊 The VS extension is now part of Visual Studio and exists almost entirely in support of Xaml. For historical reasons, some of that code resides here but the teams responsible for it (e.g. Visual Studio and Xaml) don't take feature requests through this repo.

@asklar
Copy link
Member

asklar commented Jan 30, 2023

Perhaps someone (the community?) could fork the VSIX code and publish it, where it can continue to get features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants