diff --git a/src/CodingWithCalvin.VsixSdk.Generators/VsctGuidsGenerator.cs b/src/CodingWithCalvin.VsixSdk.Generators/VsctGuidsGenerator.cs index 5f731a1..61fa7dd 100644 --- a/src/CodingWithCalvin.VsixSdk.Generators/VsctGuidsGenerator.cs +++ b/src/CodingWithCalvin.VsixSdk.Generators/VsctGuidsGenerator.cs @@ -160,9 +160,10 @@ private static string GenerateSource(string rootNamespace, string className, str { if (guidSymbol.IdSymbols.Count == 0) { - // Simple GUID constant + // Simple GUID constant with both string and Guid versions sb.AppendLine($" /// GUID: {{{guidSymbol.Value}}}"); - sb.AppendLine($" public static readonly Guid {guidSymbol.Name} = new Guid(\"{guidSymbol.Value}\");"); + sb.AppendLine($" public const string {guidSymbol.Name}String = \"{guidSymbol.Value}\";"); + sb.AppendLine($" public static readonly Guid {guidSymbol.Name} = new Guid({guidSymbol.Name}String);"); sb.AppendLine(); } else