dotnet-config-pattern-mining
Read-only mining codemod that detects legacy configuration patterns in App.config, Web.config, and Web.config transform files. No files are written to the target repo.
Registry: private. Use the public
dotnet-migration-assessment-bundleto run all miners in one workflow.
What it does
Scans configuration files for patterns that affect .NET Framework → .NET 8 migration planning:
| Pattern | Config type | Risk |
|---|---|---|
appSettings | settings | low |
connectionStrings | settings | low |
Web.config transforms | transform | medium |
startup supportedRuntime | runtime | medium |
runtime assemblyBinding | runtime | medium |
entityFramework config | ef | high |
system.web | web | high |
Metrics
| Metric | Cardinalities |
|---|---|
dotnet-config-pattern | pattern, configType, autoFix, risk, file |
Run
Via bundle (recommended):
bashnpx codemod@latest workflow run -w codemods/dotnet-migration-assessment/dotnet-migration-assessment-bundle \ -t /path/to/dotnet/repo \ --allow-dirty --no-interactive
Standalone (local monorepo):
bashnpx codemod@latest workflow run -w codemods/dotnet-migration-assessment/dotnet-config-pattern-mining \ -t /path/to/dotnet/repo \ --allow-dirty --no-interactive
Testing
bashnpm test