You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a project folder in c:\code\MyProject where the .sln file for C# projects exists in the root, run the following command
173
174
174
175
```powershell
175
-
atc-coding-rules-updater run -p c:\code\MyProject -v
176
+
atc-coding-rules-updater run -p c:\code\MyProject --verbose
176
177
```
177
178
178
179
Running the command above produces the following output
@@ -201,6 +202,8 @@ Running the command above produces the following output
201
202
202
203
The tool has an optional options parameter, which can be used to control the paths for persisting the .editorconfigs and props files. This can be applied as follows `--optionsPath 'C:\Temp\atc-coding-rules-updater.json'`
203
204
205
+
By default the atc-coding-rules-updater will detect projects in the solution and try to fetch the matching project specific rules and supply an .editorconfig in those projects. This mapping can however be over-ruled as seen in [atc-coding-rules-updater.json example 3](#atc-coding-rules-updaterjson-example-3)
206
+
204
207
### atc-coding-rules-updater.json example 1
205
208
206
209
```json
@@ -237,6 +240,29 @@ The tool has an optional options parameter, which can be used to control the pat
237
240
}
238
241
```
239
242
243
+
### atc-coding-rules-updater.json example 3
244
+
245
+
In this example a project framework mapping has been added. The entry is mapped using the CsProj fileName and the specific ProjectFrameworkType. Currently the supported values for project framework type are [defined here](/src/Atc.CodingRules.Updater/ProjectFrameworkType.cs)
246
+
247
+
By specifying this mapping it will over-rule the automatic detection of the project framework type.
248
+
249
+
```json
250
+
{
251
+
"projectTarget": "DotNet8",
252
+
"mappings": {
253
+
"sample": { "paths": [ "sample" ] },
254
+
"src": { "paths": [ "src" ] },
255
+
"test": { "paths": [ "test" ] }
256
+
},
257
+
"projectFrameworkMappings": [
258
+
{
259
+
"name": "HelloWorldWpf",
260
+
"type": "Wpf"
261
+
}
262
+
]
263
+
}
264
+
```
265
+
240
266
### atc-coding-rules-updater.json default
241
267
242
268
```json
@@ -257,7 +283,8 @@ The tool has an optional options parameter, which can be used to control the pat
0 commit comments