GUIDGen AddIn for Visual Studio.NET






4.55/5 (9 votes)
An Add-In that replaces and extends the GUID Generator component included with Visual Studio.NET
Version 2.1 What's New?
Description
GUIDGen.NET is an addin that replaces and extends the GUID Generator component included with Visual Studio.NET.
- All the formats provided by the standard component are supported, plus two other commonly-used formats.
- The ability to directly insert the results in the IDE's text editor without having to paste from the clipboard.
- Insert new GUIDs using the current settings without showing the UI.
- Optionally include an unformatted GUID as a comment before the main formatted one.
- Optionally generate "classic" GUIDs: those generated by
UuidCreateSequential
instead ofUuidCreate
. For security reasons,UuidCreate
was modified so that it no longer uses a machine's MAC address to generate UUIDs.UuidCreateSequential
was introduced to allow creation of UUIDs using the MAC address of a machine's Ethernet card. - Create GUIDs using lowercase or uppercase characters.
- Run in standalone mode using RUNDLL32. Just create a shortcut to rundll32.exe <path>\GuidGenNet.dll,ShowDialog
- Use the addin in macros using two named commands:
GGShowDialog
andGGInsertGUID
. The first command displays the UI and the second one directly inserts a GUID in the text editor using the current settings. - Default keybindings: GGShowDialog(alt+g,alt+d) and GGInsertGUID(alt+g,alt+i)
Installation
Just double-click on the GuidGenNetSetup.msi file.
Usage
To use the GUIDGen addin, click on the add-in button and select one of the options. The add-in will then insert a new GUID in the selected format in the current active document or copy the text to the clipboard.
Supported formats
- Using the
IMPLEMENT_OLECREATE
macro// {DEF47E1-E23A-11D3-B4D0-8208CCE0C829} IMPLEMENT_OLECREATE(<< class >>, << external_name >>, 0x0DEF47E1, 0xE23A, 0x11D3, 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29);
- Using the
DEFINE_GUID
macro// {DEF47E6-E23A-11D3-B4D0-8208CCE0C829} DEFINE_GUID(<< name >>, 0xDEF47E6, 0xE23A, 0x11D3, 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29);
- Creating a static GUID
// {DEF47E8-E23A-11D3-B4D0-8208CCE0C829} static const GUID << name >> = { 0xDEF47E8, 0xE23A, 0x11D3, { 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29 } };
- Using the standard registry format
{DEF47EA-E23A-11D3-B4D0-8208CCE0C829}
- Using a "plain", undecorated format
DEF47EC-E23A-11D3-B4D0-8208CCE0C829
- Using the
uuid()
format__declspec(uuid("DEF47EE-E23A-11D3-B4D0-8208CCE0C829"))
When selecting any of the first three formats, GUIDGen will work in "batch mode", creating a new GUID each time the "Insert" or "Copy" buttons are clicked, but the dialog will not be closed. The dialog will be closed when the "Exit" button is pressed. For the other formats the dialog will be closed after the button is pressed.
Updates
Version 2.1 (05/18/04)
- Added support for Visual Studio 2003
- Now the GUIDs can be created in using uppercase or lowercase.
- Administrative installs are now supported.
Version 2.0 (03/01/02)
- Initial release