相关文章推荐
要出家的灭火器  ·  Android ...·  8 月前    · 
阳光的红薯  ·  sudo: ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Please follow troubleshoot section in this documentation. 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. Using the External Tools window, we can add a reference to guidgen.exe.

For people missing the .exe file the troubleshooter refers to: modify your visual studio installation to include Desktop development with C++. This is what adds the guidgen.exe to your visual studio. Peter-Paul Jul 27, 2017 at 10:48

Mine was in Microsoft Visual Studio 11.0 instead of the Microsoft Visual Studio

Under c:\program files (x86) there are several MVS folders and each with a Common7 folder and some with Tools folder.

In one of then guidgen.exe is hiding.

Replace the links from Tools -> External Tools -> Create GUID, for example in my case

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

This is pretty late but nowadays with the C# REPL built into VS.NET or the numerous online REPLs a new guid is only as far away as a single line of C#:

Guid.NewGuid();
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.