[Symbol] Increase DebugInformationLevel for manifest entries (#4732)
authorMitchell Hwang <16830051+mdh1418@users.noreply.github.com>
Tue, 10 Sep 2024 22:56:15 +0000 (18:56 -0400)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2024 22:56:15 +0000 (15:56 -0700)
Bumping the DebugInformationLevel to be preferred over the default

src/Microsoft.SymbolManifestGenerator/SymbolManifestGenerator.cs

index e30c82d3fea06b6471cb6d4fbbb4b941ca92bbf3..d83aa621d0e280fbc0425fee0f99686d550da980 100644 (file)
@@ -14,7 +14,7 @@ namespace Microsoft.SymbolManifestGenerator;
 
 public static class SymbolManifestGenerator
 {
-    private const int Private = 340;
+    private const int TargetDebugLevel = 0x154 | 0x1 | 0x500; // Private | Binary | SourceIndexed
 
     public static bool GenerateManifest(ITracer tracer, DirectoryInfo dir, string manifestFileName, bool specialFilesRequireAdjacentRuntime = true)
     {
@@ -63,8 +63,7 @@ public static class SymbolManifestGenerator
                     BasedirRelativePath = basedirRelativePath,
                     SymbolKey = runtimeCorrelatedKey.Index,
                     Sha512 = fileHash,
-                    DebugInformationLevel = Private,
-                    LegacyDebugInformationLevel = Private
+                    DebugInformationLevel = TargetDebugLevel
                 };
 
                 manifestData.Entries.Add(manifestDataEntry);
@@ -143,7 +142,5 @@ public static class SymbolManifestGenerator
         public string SymbolKey { get; set; }
         public string Sha512 { get; set; }
         public int DebugInformationLevel { get; set; }
-        [JsonPropertyName("DebugInformationLevel")]
-        public int LegacyDebugInformationLevel { get; set; }
     }
 }