Skip to content

Using Windows App SDK in Qt app (without a Visual Studio project) #1891

Answered by triplef
triplef asked this question in Q&A
Discussion options

You must be logged in to vote

Solution for unpackaged app

Notwithstanding the issue with GetWindowIdFromWindow() discussed in the other thread, we managed to integrate the Windows App SDK in an unpackaged app without using Visual Studio as follows:

  • Install Windows App SDK:
    :: download Windows App SDK NuGet package
    nuget.exe install Microsoft.WindowsAppSDK -OutputDirectory %cd%
    
    :: generate headers from Windows Metadata files
    cppwinrt.exe -out include-gen -ref sdk -in Microsoft.WindowsAppSDK.1.0.0\lib\uap10.0 -in Microsoft.WindowsAppSDK.1.0.0\lib\uap10.0.17763 -in Microsoft.WindowsAppSDK.1.0.0\lib\uap10.0.18362
  • Add Microsoft.WindowsAppSDK.1.0.0/include and include-gen to header search paths.
  • Link against Microsoft.Wi…

Replies: 3 comments 25 replies

Comment options

You must be logged in to vote
23 replies
@triplef
Comment options

@DrusTheAxe
Comment options

@triplef
Comment options

@DrusTheAxe
Comment options

@gabbybilka
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by triplef
Comment options

You must be logged in to vote
2 replies
@triplef
Comment options

@DrusTheAxe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants