-
Notifications
You must be signed in to change notification settings - Fork 56
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
Nuget package for C++/WinRT 2.0? #25
Comments
This site just hosts a few templates for C++/WinRT related to my GitHub projects. It's not for the official NuGet or [VSIX](https://marketplace.visualstudio.com/items?itemName =CppWinRTTeam.cppwinrt101804264) packages. What issue are you trying to report? |
Well, since 2.0 of C++/WinRT we are supposed to reference that NuGet package to instead of leveraging the winrt headers included in the Windows SDK, let the cppwinrt compiler generate the headers for each projects. Mentioned here: https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/news |
I created a small PR draft #26 to demonstrate the suggestion. |
You can create an instance of one of the UWP C++/WinRT projects in this GitHub's VSIX and they build fine with the Windows 10 SDK (17763 or later) even if you are not using any NuGet packages. If you want to use the new C++/WinRT 2.0 generator solution, you can add the That said, you need a fix to Main.cpp from this commit. I'll do a new VSIX tomorrow to include the most recent fixes. |
The |
I though I had, since I pretty much ONLY do UWP development with VS2019... Will investigate further. Thx! |
I had an issue with VS 2017 that was fixed in 15.3 that provided redirect bindings for my VS 2015 compatible VSIX:
It sounds like these redirects are missing from VS 2019. |
Do you have VS 2017 and VS 2019 on the machine that's failing, or just VS 2019? |
Both... |
Hmmm. It works for me, but I have VS 2015 installed too... Can you file an issue with the VS "File a problem..." feature for the "14.0.0.0" warning? I can then point the PM to that bug. In order to support VS 2015, VS 2017, and VS 2019 with my |
I released the updated VSIX with the Main.cpp compatible with C++/WinRT 2.0. |
So the redirects are already present, so that's not the issue in
|
Can you find the file
|
And thanks a lot for the VS bug and help in digging in. Good catch for sure. I never noticed it because I had VS 2015 installed in most cases, but I was able to repro it on my laptop with just VS 2017 + VS 2019. |
The workaround is to edit
|
The latest version of C++/WinRT should have the Nuget package integrated. Is that something we can help with?
The text was updated successfully, but these errors were encountered: