I am at a loss here and could use some help. I am using the MSIX Packaging Project in visual studio to package my c++ UWP application, however when I try to publish it I get errors:
CL.exe /c /I"Debug\Generated Files\\" /ZI /JMC /nologo /W3 /WX- /diagnostics:column /sdl /Od /Oy- /D USE_IMPORT_EXPORT /D NOMINMAX /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /std:c++20 /permissive- /Yu"stdafx.h" /Fp"Debug\QMirrorCore.pch" /Fo"Debug\\" /Fd"Debug\vc143.pdb" /external:W3 /Gd /TP /analyze- /FC /errorReport:queue /bigobj ProviderS3.cpp
Cannot open include file: 'aws/core/Aws.h': No such file or directory
Cannot open include file: 'nlohmann/json.hpp': No such file or directory
These includes are already set in my application project which compiles just fine in release or debug! I don't see any way to set includes in the packaging project, I thought the include directories would just be inherited from the project dependency... I should also note that before adding the json, AWS, or any other external library the packaging worked fine.
MSIX Packaging default setting builds for multiple target platforms, x86 and x64. You need to make sure all includes are set for each environment on your applications project properties.