Skip to content

Conversation

@GurliGebis
Copy link
Contributor

This adds the C++/WinRT nuget package, so it is updated to the latest headers, like Microsoft recommends.

This fixes #7

@GurliGebis GurliGebis mentioned this pull request Mar 29, 2023
@GurliGebis
Copy link
Contributor Author

Ping @donho, in case you don't get notifications on new PRs

Copy link
Member

@donho donho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if it's really need the nuget system.

#include "winrt/base.h"
#include "winrt/Windows.ApplicationModel.h"
#include "winrt/Windows.Foundation.Collections.h"
#include "winrt/Windows.Management.Deployment.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these change? For me to include system headers the right syntax is #include <winrt/base.h> instead of #include "winrt/base.h".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It switches from the ones provided by Visual Studio to the nuget versions

@GurliGebis
Copy link
Contributor Author

@donho the idea of using the headers from there, is that they can be kept up to date.
Microsoft releases new version with bugfixes regularly, and to keep it decoupled from the installed VS version (Since you cannot be sure everyone has the same version and update installed), they recommend using the nuget version of the headers instead 🙂

@donho donho closed this in e982670 Mar 30, 2023
@GurliGebis GurliGebis deleted the missing-nuget branch March 30, 2023 16:03
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

Successfully merging this pull request may close these issues.

C++/WinRT NuGet missing

2 participants