Generate New GUID Using Visual Studio

What is GUID (Globally Unique Identifier)

  • GUID is a unique identifier, you can use this for identifying the particular component.

  • GUIDs are usually stored as 128-bit values, and are commonly displayed as 32 hexadecimal digits with groups separated by hyphens, such as {DA1FFC57-62EE-4019-9BAE-D5670339CD1C}.

  • GUIDs generated from random numbers that normally contains 6 fixed bits (these indicate that the GUID is random) and 122 random bits; the total number of unique such GUIDs is 2122 (approximately 5.3×1036).

Steps to generate GUID

Here are the steps to generate the new GUID.

Step 1: Open Visual Studio in your machine:

Visual Studio in your machine

Step 2: Click on the TOOLS from Menu as in the following screenshot:

click on the tools

Step 3: On the TOOLS panel choose Create GUID for generating new GUID.

create GUID for generate new GUID

Step 4: Once you click Create GUID you will get the pop up as in the following screenshot:

Create GUID

Step 5: By clicking Copy on the pop up you can copy the GUID. If you want to generate one more, then click on the New GUID button as in the following screenshot:
New GUID

Finally New GUID will be generated successfully.

Summary

In this article we have explored how to create new GUID using Visual Studio.
Happy Learning!


Similar Articles