简体   繁体   English

C#部署项目:与扩展相关的图标未出现

[英]C# deployment project: Icon doesn't appear for the extension associated

Linking Icon to an Extension doesn't create default icon path in registry. 将图标链接到扩展程序不会在注册表中创建默认的图标路径。

In Demo C# Deployment Project Suppose we have an Extensions "abc" and an Icon "abc.ico" to be associated with it. 在演示C#部署项目中,假设我们有一个扩展名“ abc”和一个图标“ abc.ico”与之关联。 Icon is placed in File System of the deployment proj. 图标位于部署项目的文件系统中。 Extension abc is defined in File Types and icon is associated with it. 扩展名abc在“ 文件类型”中定义,并且图标与其关联。

But in registry the default icon path is empty and the exe for the icon is not generated. 但是在注册表中,默认图标路径为空,并且不会生成该图标的exe。 If Default Icon Path is not created the icon will not be visible. 如果未创建默认图标路径,则该图标将不可见。

Is there anything else to be done? 还有什么要做的吗?

Visual Studio as Administrator打开Visual Studio as Administrator解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM