“打开方式” - C#程序在Windows“打开方式”上下文菜单中仅显示图标

时间:2023-01-17 09:36:23

I have a program, MyApp, where I can open a text file, which works great. The application is created in C# with Visual Studio 2003, .NET 1.1.

我有一个程序MyApp,我可以打开一个文本文件,效果很好。该应用程序是使用Visual Studio 2003,.NET 1.1在C#中创建的。

But under the [right-click on file context-menu in Explorer -> "Open With"] just the icon is shown, not the application name or description.

但是在[在资源管理器中右键单击文件上下文菜单 - >“打开方式”]下,只显示图标,而不是应用程序名称或描述。

As shown here: Open With context-menu (http://data.fuskbugg.se/skalman02/4e450ba043602_openwith.png)

如下所示:打开上下文菜单(http://data.fuskbugg.se/skalman02/4e450ba043602_openwith.png)

If we look at Notepad++ in the image that text seems to be the description text, same as under File properties general tab for notepad++.exe.

如果我们在图像中查看Notepad ++文本似乎是描述文本,则与文本属性常规选项卡下的notepad ++。exe相同。

What value is used there? How do I set that value?

那里有什么价值?我该如何设定该值?

[EDIT]: The registry entries automatically generated when using "open With -> browse for application" are: HKEY_CLASSES_ROOT\Applications\MyApp.exe\shell\open\command (default) under the key command is: "correct path" "%1"

[编辑]:使用“打开方式 - >浏览应用程序”时自动生成的注册表项是:键命令下的HKEY_CLASSES_ROOT \ Applications \ MyApp.exe \ shell \ open \ command(默认值)为:“正确路径”“% 1"

1 个解决方案

#1


1  

You need to set the AssemblyTitle in AssemblyInfo.cs. After doing this you may need to remove all the registry entries and re-install your aplication.

您需要在AssemblyInfo.cs中设置AssemblyTitle。执行此操作后,您可能需要删除所有注册表项并重新安装您的应用程序。

(so other people with the same problem don't need to search through the comment thread)

(所以其他有相同问题的人不需要搜索评论帖子)

#1


1  

You need to set the AssemblyTitle in AssemblyInfo.cs. After doing this you may need to remove all the registry entries and re-install your aplication.

您需要在AssemblyInfo.cs中设置AssemblyTitle。执行此操作后,您可能需要删除所有注册表项并重新安装您的应用程序。

(so other people with the same problem don't need to search through the comment thread)

(所以其他有相同问题的人不需要搜索评论帖子)