0

The title says it all really. I've tried using RegisterAdditionalFileAction in a DiagnosticAnalyzer but it doesn't seem to include the appsettings*.json file(s).

Is it even possible? I'd like to write an analyser that would check those files for certain content.

Steve Wilford
  • 8,894
  • 5
  • 42
  • 66

1 Answers1

0

You will likely need some MSBuild to specify which files must get passed to the compiler up-front; see this documentation for details.

Jason Malinowski
  • 18,148
  • 1
  • 38
  • 55