79401363

Date: 2025-01-30 22:24:47
Score: 1
Natty:
Report link

The original cause was ConfigurationBuilder reloadOnChange functionality. The last boolean on this method indicates that reloadOnChange is active.

var baseBuilder = new ConfigurationBuilder().AddJsonFile(path, false, true).Build();

Even though the configuration builder gets cleaned up by garbage collection, the reloadOnChange had created a file handle that never got removed by garbage colleciton.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user29409503