嵌入 app.icon 仍复制到发布目录中
我已向应用程序中的所有表单添加了一个图标(使用文件浏览器)。我已将其属性设置为“嵌入式资源”。在“项目”>“应用程序”中,我从列表中选择了该文件。所以它应该指向该文件。它确实选择了“不复制”。但是,当我发布应用程序时,此文件始终位于输出目录中,我不知道为什么。删除后,图标仍然可以。它与主图标有关,因为当我将应用程序图标设置为默认值并让表单图标相同时,它不会出现发布。这就是我不明白的地方,因为在选择应用程序图标时,我认为这个图标已被引用,并且没有理由将其保留在外部。有什么想法吗?
编辑:图标文件不在“项目”>“发布”的“应用程序文件”列表中。
谢谢你!
I have added an icon (using file browser) to all forms in my application. I have set its properties to "Embedded resource". In the Project>Application I have chosen that file from the list. So it should point to that file. It does have "Do not copy" selected. However when I publish the app this file is always in the output directory and I do not know why. When deleted, icons are still OK. It is related to main icon because when I set application icon to default and let the Forms icons the same, it wont appear appear publishing. That is what I do not understand, because when selecting application icon, I assume this one is referenced and there is no reason why it should be left externally. Any ideas?
EDIT: The icon file is not in the Application Files list in Project>Publish.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它是 ClickOnce 应用程序,请检查项目属性中的“发布”选项卡。有一个“应用程序文件”按钮,列出了包含/排除的文件等......
If it's a ClickOnce application check the Publish tab in your project properties. There is a button Application Files that lists which files are included/excluded etc....