Visual Studio 中创建 GUID 工具的用途是什么?
Visual Studio 有一个创建 GUID 工具(工具 > 创建 GUID)。
它是做什么用的?您还记得上次使用它是什么时候吗?
我只是无法想象为什么我应该使用该工具将新的 GUID 复制到剪贴板中。
Visual Studio has a Create GUID tool (Tools > Create GUID).
What is it for? Can you remember what was the last time you used it?
I just can't imagine why i should copy into the clipboard a new GUID with that tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
对于开发和维护 COM 组件的人来说,它是一个非常有用的工具。需要引入新的注册表公开类或接口?您需要一个新的 GUID。使用此工具,您可以单击“新建 GUID”,选择“注册表格式”,将其复制到剪贴板,然后粘贴到 IDL 文件中。
It's a very useful tool for those who develop and maintain COM components. Need to introduce a new registry-exposed class or interface? You need a new GUID. With this tool you click "New GUID", select "Registry format", copy it to the clipborad and then paste into a IDL file.
WiX(安装程序工具包)项目需要大量 GUID。我经常使用它。
WiX (installer toolkit) projects require a lot of GUIDs. I use it often and often.
我已经多次使用它来获取 GUID,而无需编写和运行一些代码或打开 SQL Management Studio。
I've used it many times to get a GUID without having to write and run some code or open SQL Management Studio.
当您希望为资源创建唯一标识符时,GUID 非常有用。
在 C# 中,您可以使用:
GUIDs are very useful when you wish to create a unique identifier to a resource.
In C# you can use :
在这里你有。该 GUID 来自创建 GUID 工具
Here you have. That GUID came from the Create GUID tool