"If you'd like just to add XML comments (without using the Comment Editor) you can open GhostDoc->Options->Comment Editor and uncheck the "Use Comment Editor to Document This". In that case, the Comment Editor won't be used along with the exception."
That is already unchecked in my options, seemingly by default.
I can put the entire file in here, it's rather tiny. This is a .net 6 console app which just figures out which values a config file template actually uses from its corresponding lookup. I'm trying to comment the method GetLookupReport. Code follows:
using Aspose.Cells;
const string rootFolderPath = @"C:\configFiles";
var templateFilePath = Path.Combine(rootFolderPath, "template.web.config");
var lookupFilePath = Path.Combine(rootFolderPath, "settings.web.config.csv");
var outputPath = Path.Combine(rootFolderPath, "lookupToConfigUsage.tsv");
File.WriteAllText(outputPath, GetLookupReport(lookupFilePath, templateFilePath));
static string GetLookupReport(string lookupFilePath, string templateFilePath)
{
// setup
var templateContent = File.ReadAllText(templateFilePath); // get template from file
return string.Join(
Environment.NewLine,
new Workbook(lookupFilePath)
.Worksheets[0]
.Cells
.Rows
.Cast<Row>()
.First() // grab first row
.Cast<Cell>()
.Select(cell => new { cell.StringValue, Bookmark = $"[%%{cell.StringValue}%%]" })
.Select(nameAndBookmark =>
$"{nameAndBookmark.StringValue}\t{templateContent.Contains(nameAndBookmark.Bookmark)}"
)
);
}