Description
Type of issue
Typo
Feedback
Following this doc, get an error immediately on run.
Severity Code Description Project File Line Suppression State Details
Error MIDL2011 [msg]unresolved type declaration [context]: Microsoft.UI.Xaml.Window [ RuntimeClass 'HelloWorld.MainWindow' ] HelloWorld C:\Users\me\Documents\GitHub\Windows\HelloWorld\HelloWorld\MainWindow.idl 5
Seeing as I have 0 experience with WinUI, I throw this into Co-Pilot, who advises to import "Microsoft.UI.Xaml.Window.idl" into my MainWindow.idl.. When I do this,
Severity Code Description Project File Line Suppression State Details
Error MIDL1001 [msg]cannot open input file [context]Microsoft.UI.Xaml.idl HelloWorld C:\Users\ben.jenkins\Documents\GitHub\Windows\HelloWorld\HelloWorld\midlrt 1
googling gets me some pretty deep answers, and I'm not seeing anything clearly related within Issues.
Page URL
https://learn.microsoft.com/en-us/windows/apps/get-started/start-here?tabs=vs-2022-17-10
Content source URL
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/get-started/start-here.md
Author
Document Id
2a20f1ff-c80a-902a-559d-e4294dde69e4
Platform Id
6a1b0a68-a0fc-11e0-bcaa-c1d132fe0eb8