how to add dll file to Windows Application Packaging Project

Mine 20 信誉分
2025-03-13T10:06:51.7866667+00:00

Hi there, I have a c++ win32 application, and I wan't to pack it to msix, i found this tutorial. but my project has some dll file that is other project's compiled product.

the solution like this: like this

when I add the DLL1's project reference visio studio prevent me. it is because that the DLL1 project doesn't have exe file. error screenshot

so, how do I add these dll files in Windows Application Packaging Project.

C++
C++
一种通用的高级编程语言,作为 C 编程语言的扩展而创建,除了用于低级别内存操作的功能外,还具有面向对象、泛型和功能性等特点。
177 个问题
0 个注释 无注释
{count} 票

接受的答案
  1. Minxin Yu 13,501 信誉分 Microsoft 外部员工
    2025-03-14T02:34:20.2966667+00:00

    您好,

    需要使用<Content Include=" “>来包含DLL文件。


    如果答案是正确的,请点击“接受答案”并点赞。 如果您对此答案还有其他疑问,请点击“评论”。

    注意:如果您想接收相关电子邮件,请按照我们的文档中的步骤启用电子邮件通知 此线程的通知。

    1 个人认为此答案很有帮助。
    0 个注释 无注释

0 个其他答案

排序依据: 最新

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。