开发者

Setting File Associations with ClickOnce

开发者 https://www.devze.com 2023-03-22 15:26 出处:网络
When setting up a File Association for my App with ClickOnce I run into an issue. I\'m using the Properties > Publish > Options > File Associations method. The issue is that when I try to set the defa

When setting up a File Association for my App with ClickOnce I run into an issue. I'm using the Properties > Publish > Options > File Associations method. The issue is that when I try to set the default icon for that file I get the "Icon is not set to be published with the application, or is not part of the required download group" error. After some searching I seem to be stuck. How does one set up an association, and more specifically how do you add an icon to the project and开发者_Go百科 reference it in the File Association manager?


Make sure that your icon file is part of the Application Files (Publish > Application Files). In my case I needed to change the type of the icon file to 'Content' and then it showed up in the list of Application Files. Then I was able to specify the file association without any errors.

0

精彩评论

暂无评论...
验证码 换一张
取 消