/// <summary> /// Write the sarif ToolInfo to the log. /// </summary> public static void TraceToolInfo() { Assembly entryAssembly = Assembly.GetEntryAssembly(); ToolInfo toolInfo = new ToolInfo(); toolInfo.FullName = Path.GetFileName(entryAssembly.Location); toolInfo.Name = Path.GetFileNameWithoutExtension(entryAssembly.Location); toolInfo.FileVersion = entryAssembly.GetName().Version.ToString(); toolInfo.Version = toolInfo.FileVersion; string json = toolInfo.ToJson(); StatusTrace.TraceInformation("NG908", json); }