当固定到开始菜单的应用程序标题丢失 [英] Application Title is missing when pinned to start menu

查看:182
本文介绍了当固定到开始菜单的应用程序标题丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有寄托我的C#应用​​程序在Windows 2008 R2中的开始菜单中的一个问题。用正确的图标,但应用程序的名称申请销丢失。实际上我只是得到显示的图标。

I have a problem with pinning my c# application to the start menu in Windows 2008 R2. The application pins with the correct icon but the application name is missing. In effect I just get the icon displayed.

我的csproj有一个进口的MSBuild指向一个自定义的目标文件自动生成的程序集信息类。我已经检查了生成的程序集信息文件,并证实了AssemblyTitle,AssemblyProduct和AssemblyCompany属性设置正确。

My csproj has an msbuild import that points to a custom target file to automatically generate the AssemblyInfo class. I have checked the generated AssemblyInfo file and verified that the attributes for AssemblyTitle, AssemblyProduct, and AssemblyCompany are set correctly.

一切看起来不错,当我右键单击该.exe文件,并期待在属性\详细信息。显示所有信息如预期,只是没有当应用程序被固定。

Everything looks ok when I right click the .exe and look at the properties\details. All the information is displayed as expected, just not when the application is pinned.

有没有人有任何想法,这可能是为什么?

Does anyone have any ideas as to why this might be?

干杯,

推荐答案

好了,我已经解决了我的问题。

Ok, so I have solved my problem.

我在更精细的细节有些模糊,但它似乎是,当一个项目被添加到STARTMENU一个注册表项中创建包含有关该项目的元数据。

I am a little hazy on the finer details but it seem that when an item is added to the startmenu a registry key is created containing metadata about the item.

在: HKEY_CLASSES_ROOT \本地设置\软件\微软\的Windows \壳牌\ MuiCache

Under: HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache

这REGKEY有一组键/值对,其中之一是路径到我的.exe文件。该值是可执行文件的显示名称。修改这个值会修改开始菜单上显示的应用程序名称的文本。

This regkey has a set of key/value pairs, one of which was the path to my .exe. The value was the display name of the executable. Modifying this value modifies the application name text displayed on the start menu.

删除该密钥并将其重新加入正确。它看起来像此键时最初设定它需要无论是在AssemblyInfo.AssemblyTitle属性设置。

Deleted this key and it was re-added correctly. It looks like when this key is initially set it takes whatever is set in the AssemblyInfo.AssemblyTitle attribute.

问题解决了。

这篇关于当固定到开始菜单的应用程序标题丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆