Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit bcb43c3

Browse files
obonessavornicesei
authored andcommitted
ConfigurationManager may not be able to find the appropriate file, so fall back to opening a configuration manually. This is happening under Linux/Mono for instance.
1 parent 4ab8bcf commit bcb43c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

project/core/publishers/BuildLogTransformer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public class BuildLogTransformer
2222
public string TransformResultsWithAllStyleSheets(XPathDocument document)
2323
{
2424
var section = ConfigurationManager.GetSection("xslFiles") as XslFilesSectionHandler;
25+
if (section == null)
26+
section = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).GetSection("xslFiles") as XslFilesSectionHandler;
27+
2528
return TransformResults(section?.FileNames, document);
2629
}
2730

0 commit comments

Comments
 (0)