Windows通用“包名称”最佳做法? [英] Windows universal "package name" best practices?
问题描述
我正在使用Windows Universal应用程序。
在 Package.appxmanifest
的编辑器中, 打包
标签,有一个包名称
字段。在XML编辑器中,此字段存储在 / Package / Identity @ Name
属性中。
最初,这是由Visual Studio用自动生成的GUID填充的。这个领域的最佳实践是什么?这个字段的完全用法/含义是什么?
我应该不管它吗?或者,我应该将其更改为友好的名称吗?如果我将其更改为友好名称,是否有任何我应该遵守的约定(例如,其他地方使用的 com.companyname.applicationname
约定)?
我很乐意接受MS关于这个主题的任何权威指导的链接:)
我尝试了什么:
我搜索了关于这个主题的信息,发现了许多链接,但建议是矛盾的。
有些人建议将其更改为友好名称,对适当值的建议很少。
其他人建议不要管它。
我无法找到任何权威来源打破平局。
I am working on a Windows Universal application.
In the editor for Package.appxmanifest
, on the Packaging
tab, there is a Package name
field. In the XML editor, this field is stored in the /Package/Identity@Name
attribute.
Initially, this is filled in, by Visual Studio, with an auto-generated GUID. What are the best practices for this field? What is the exact usage / meaning for this field?
Should I leave it alone? Or, should I change it to a "friendly" name? If I change it to a friendly name, are there any conventions I should honor (e.g. the com.companyname.applicationname
convention used elsewhere)?
I'll happily accept links to any authoritative guidance from MS on this topic :)
What I have tried:
I searched for information on this topic, and found many links, but the advice was contradictory.
Some recommended changing it to a "friendly" name, with little advice about appropriate values.
Others recommend leaving it alone.
I wasn't able to find any authoritative source to break the tie.
推荐答案
回答我自己的问题...之后我写了一个快速程序来查看我计算机上安装的所有UWP应用程序的清单,我发现公司通常会将其更改为友好名称。虽然不是一个惯例,但我也发现最常见的做法(通常是微软)似乎是:
companyname.applicationname
所以,我会继续。
更新:谢谢Richard MacCutchan的官方MS立场:
如何为Windows 8创建基本包清单 - UWP app developer Microsoft Docs [ ^ ]
Answering my own question...after writing a quick program to look at the manifests for all of the UWP applications installed on my computer, I found that companies usually change it to a friendly name. While not quite a convention, I also found that the most common practice (generally by Microsoft) seems to be:
companyname.applicationname
So, I'll go with that.
UPDATE: Thanks to Richard MacCutchan for the official MS stance:
How to create a basic package manifest for Windows 8 - UWP app developer | Microsoft Docs[^]
这篇关于Windows通用“包名称”最佳做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!