question

RICKYGAI-7859 avatar image
0 Votes"
RICKYGAI-7859 asked RICKYGAI-7859 answered

How to add include path and win32 .lib files to .wapproj ( Windows Application packaging project for Visual C++ .NET /CLI WinForm application ) ?

I am having issues on publishing a Visual C++ /CLI WinForm application using Windows Application packaging project to Windows Store.

At Windows Application packaging project stage:

  1. it cannot find the .h files where I have specified to the .vcxproj

  2. it is not linking the win32 .lib files such as User32.lib

Here is the video link that described the current problem.

QUESTIONS:

  1. How to add the include search path to the .wapproj file ?

  2. How to add win32 .lib library files to .wapproj file ?

I don't see any option available to add the above two statements mentioned aside the .wapproj merely.

Please advise.


dotnet-cli
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RICKYGAI-7859 avatar image
0 Votes"
RICKYGAI-7859 answered

I resolved the problem by adding the my custom .h files folder to the "Additional Include Directories" to C/C++ and Linker of Configuration Properties for "Debug", "Release" and its respective Platform "Win32" and "x64" as shown below:

98110-resolved-c-cli-winform-windows-application-packagi.png




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.