Visual Studio 中创建 GUID 工具的用途是什么?

发布于 2024-08-03 00:22:44 字数 129 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

若有似无的小暗淡 2024-08-10 00:22:44

对于开发和维护 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.

恰似旧人归 2024-08-10 00:22:44

WiX(安装程序工具包)项目需要大量 GUID。我经常使用它。

WiX (installer toolkit) projects require a lot of GUIDs. I use it often and often.

江挽川 2024-08-10 00:22:44

我已经多次使用它来获取 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.

二智少女 2024-08-10 00:22:44

当您希望为资源创建唯一标识符时,GUID 非常有用。

在 C# 中,您可以使用:

System.Guid.NewGuid();

GUIDs are very useful when you wish to create a unique identifier to a resource.

In C# you can use :

System.Guid.NewGuid();
当爱已成负担 2024-08-10 00:22:44
[Guid("8B92766B-825F-409d-BC32-B3723D617A93"), ClassInterface(ClassInterfaceType.None), ProgId("Apollo.WS"), ComVisible(true)]
public sealed class WS : ServicedComponent, IWSFSAPLProxy {}

在这里你有。该 GUID 来自创建 GUID 工具

[Guid("8B92766B-825F-409d-BC32-B3723D617A93"), ClassInterface(ClassInterfaceType.None), ProgId("Apollo.WS"), ComVisible(true)]
public sealed class WS : ServicedComponent, IWSFSAPLProxy {}

Here you have. That GUID came from the Create GUID tool

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文