When adding a new IDL file (ProjectItem.idl along with ProjectItem.h and .cpp) I get the following error:
1><path>ProjectItem.g.h(52,10): error C1083: Cannot open include file: '<path>\packages\Microsoft.WindowsAppSDK.1.4.231219000\lib\uap10.0.18362\Microsoft.Foundation.h': No such file or directory
If I go to the ProjectItem.g.h
file I can see the include:
#include "<project>\packages\Microsoft.WindowsAppSDK.1.4.231219000\lib\uap10.0.18362\Microsoft.Foundation.h"
Then if I go to the path <project>\packages\Microsoft.WindowsAppSDK.1.4.231219000\lib\uap10.0.18362\
, I can see that the Microsoft.Foundation.h is missing:
Directory: packages\Microsoft.WindowsAppSDK.1.4.231219000\lib\uap1
0.0.18362
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 15.12.2023 01:16 1536 Microsoft.Foundation.winmd
-a---- 20.12.2023 00:52 219 Microsoft.Foundation.xml
-a---- 15.12.2023 01:16 11264 Microsoft.Graphics.winmd
-a---- 20.12.2023 00:52 26946 Microsoft.Graphics.xml
-a---- 15.12.2023 01:16 259072 Microsoft.UI.winmd
-a---- 20.12.2023 00:52 492724 Microsoft.UI.xml
What could be the problem? Why is the generated file containing a header that is missing?
Note: The project is a "Blank App, Packaged with Windows Application Packaging Project (WinUI3 in Desktop)" that I just created.