简体   繁体   English

在Visual Studio Enterprise 2017中缺少创建GUID?

[英]Missing Create GUID in Visual Studio Enterprise 2017?

Where can I find Create GUID options in Visual Studio 2017? 我在哪里可以找到Visual Studio 2017中的创建GUID选项?

I'm using Visual Studio Enterprise 2017 Edition and I'm not finding the Create GUID options from the Tools menu. 我正在使用Visual Studio Enterprise 2017版,我没有从“工具”菜单中找到“创建GUID”选项。

Please follow troubleshoot section in this documentation. 请按照本文档中的疑难解答部分进行操作。 https://social.technet.microsoft.com/wiki/contents/articles/33047.create-guid-tool-in-visual-studio.aspx https://social.technet.microsoft.com/wiki/contents/articles/33047.create-guid-tool-in-visual-studio.aspx

If the tool does not appear under the Tools menu, click Tools > External Tools (see image above). 如果该工具未显示在“工具”菜单下,请单击“工具”>“外部工具”(请参见上图)。 It may be that the tool was not registered correctly within the IDE. 可能是该工具未在IDE中正确注册。 Using the External Tools window, we can add a reference to guidgen.exe. 使用“外部工具”窗口,我们可以添加对guidgen.exe的引用。

Mine was in Microsoft Visual Studio 11.0 instead of the Microsoft Visual Studio 我在Microsoft Visual Studio 11.0而不是Microsoft Visual Studio

Under c:\\program files (x86) there are several MVS folders and each with a Common7 folder and some with Tools folder. c:\\program files (x86)有几个MVS文件夹,每个文件夹都有一个Common7文件夹,还有一些带有Tools文件夹。

In one of then guidgen.exe is hiding. 其中一个guidgen.exe正在隐藏。

Replace the links from Tools -> External Tools -> Create GUID, for example in my case 替换工具 - >外部工具 - >创建GUID中的链接,例如在我的情况下

c:\\program files (x86)\\Microsoft Visual Studio 11.0\\Common7\\Tools

这已经很晚了但是现在随着VS.NET内置的C#REPL或众多的在线REPL,一个新的guid只能远离一行C#:

Guid.NewGuid();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM