コード例 #1
0
        private ImmutableArray <SourceLink> ResolveSourceLinks(CompilationOptionsReader compilationOptionsReader)
        {
            using var _ = _logger.BeginScope("Source Links");
            var sourceLinks = compilationOptionsReader.GetSourceLinksOpt();

            if (sourceLinks.IsDefault)
            {
                _logger.LogInformation("No source links found in pdb");
            }
            else
            {
                foreach (var link in sourceLinks)
                {
                    _logger.LogInformation($@"""{link.Prefix}"": ""{link.Replace}""");
                }
            }
            return(sourceLinks);
        }