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
The config file holds all values to determine what changes to make. The reason this is separate from CLI input arguments is to let a developer store this config in different repos but have this .NET Tool installed globally on their machine. That makes it easy to let other developers run this tool with specific settings for each repository, while only needing to provide a single CLI input argument.
45
41
46
-
Below are the list of properties in the config file. All fields are required.
42
+
Below are the list of properties in the config file.
47
43
48
44
- RootDirectory
45
+
- Required
49
46
- Root directory to run from. Code Updater will search all child directories within this for projects to update.
50
47
- IgnorePatterns
48
+
- Required
51
49
- String to ignore within file paths when looking for projects to update. This is OS sensitive, so use \ as the path separator for Windows, and / as the path separator everywhere else. Eg: `\my-skip-path\` will ignore all projects that have the text `\my-skip-path\` within the full path. Note this example will only happen on Windows because that uses backslashes for path separators.- NpmBuildCommand
52
50
- NpmBuildCommand
51
+
- Required
53
52
- After upgrading all of the code, this application will attempt to build all applications it updated. This option sets the npm command to run to do the build.
54
53
- Npm command to run to "compile" the npm directory. Default value is `publish`. Format run is: npm run <npmBuildCommand>.
55
54
- DotNetTargetFramework
55
+
- Required
56
56
- Target Framework to set in all *.CsProj files
57
57
- DotNetLangVersion
58
+
- Required
58
59
- C# language version to set in all *.CsProj files
59
60
- EnableNetAnalyzers
61
+
- Required
60
62
- Boolean value to set the `EnableNetAnalyzers` csproj element to. If the `EnableNetAnalyzers` element does not exist in the project file, it will be added.
61
63
- EnforceCodeStyleInBuild
64
+
- Required
62
65
- Boolean value to set the `EnforceCodeStyleInBuild` csproj element to. If the `EnableNetAnalyzers` element does not exist in the project file, it will be added.
66
+
- OutputFile
67
+
- Optional
68
+
- If this is set, it will be the file to write logs to, in addition to the console
Copy file name to clipboardExpand all lines: src/CodeUpdater/CodeUpdater/Options/CommandOptions.cs
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,4 @@ public class CommandOptions
13
13
{
14
14
[Option(shortName:'c',longName:"config-file",Required=true,HelpText="Path to the file to use for config values when updating code")]
15
15
publicrequiredstringConfigFile{get;set;}
16
-
17
-
[Option(shortName:'o',longName:"output-file",Required=false,HelpText="If this is set, it will be the file to write logs to, in addition to the console")]
0 commit comments