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
Copy file name to clipboardExpand all lines: README.md
+64-54Lines changed: 64 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,14 @@ It would be great to get this to work for all kinds of languages/frameworks some
6
6
7
7
## What Updates Can Be Done
8
8
9
-
- Update .NET `*.csproj` files to use a specified C# Language Version
10
-
- Update .NET `*.csproj` files to use a specified .NET SDK Version (AKA TargetFramework element)
9
+
- Update `*.csproj` files to use a specified C# Language Version
10
+
- Update `*.csproj` files to use a specified .NET SDK Version (AKA TargetFramework element)
11
11
- Enable/Disable .NET Analyzers in all `*.csproj` files
12
12
- Run `dotnet format` command on all `*.csproj` files
13
13
- Update all NuGet packages in all *`.csproj` files to the latest version
14
14
- Add Nuget auditing properties to all `*.csproj` files
15
-
- Update all NPM packages in all package.json files to the latest version
15
+
- Update all NPM packages in all `package.json` files to the latest version
16
+
- Search all included files for a regex pattern
16
17
17
18
## How to Use It
18
19
@@ -38,9 +39,11 @@ Remember, the purpose of this is to update code and dependencies. It is assumed,
38
39
-`-h|--help`
39
40
- Outputs CLI help
40
41
41
-
## Options File
42
+
## Update Options File
42
43
43
-
This is a config file used by the app to determine what updates to run. It is composed of different objects which enable certain update features. Setting an object means that feature will run. Omitting it from the file will disable that update feature.
44
+
This is a config file used by the app to determine what updates to run. It is composed of different objects which enable certain update features. Setting an object means that feature will run. Omitting it from the file will disable that update feature.
45
+
46
+
Below is a list of the required and optional propeties for the Update Options JSON. There is also a JSON Schema for this file at the root of this repository titled `UpdateOptionsSchema.json` which you can use to validate before running, if it helps.
44
47
45
48
- UpdatePathOptions
46
49
- Required
@@ -89,24 +92,28 @@ This is a config file used by the app to determine what updates to run. It is co
89
92
- Required Properties:
90
93
- RunDotnetFormat
91
94
- Boolean. True to run the `dotnet format` command
92
-
- NugetAuditOptions
93
-
- Optional
94
-
- Settings to use for configuring Nuget Audit settings in csproj files. You can read more at https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#configuring-nuget-audit
95
-
- Required Properties:
96
-
- NuGetAudit
97
-
- Boolean. What value to set for the `NuGetAudit` property in the csproj file.
98
-
- AuditMode
99
-
- String. What value to set for the `NuGetAuditMode` property in the csproj file. Valid values are `direct` and `all`.
100
-
- AuditLevel
101
-
- String. What value to set for the `NuGetAuditLevel` property in the csproj file. Valid values are: `low`, `moderate`, `high`, and `critical`
102
-
- NuGetUpdateOptions
95
+
- NugetOptions
103
96
- Optional
104
-
- Settings to use for updating NuGet packages in csproj files
105
-
- Required Properties:
106
-
- UpdateTopLevelNugetsInCsProj
107
-
- Boolean. True to updates all referenced nugets to the latest version. These are the references in the csproj files.
108
-
- UpdateTopLevelNugetsNotInCsProj
109
-
- Boolean. True to updates all indirect nugets to the latest version. These are the nugets that are referenced automatically based on SDK chosen or something like that.
97
+
- Options for updating Nuget packages in csproj files
98
+
- Properties:
99
+
- AuditOptions
100
+
- Optional
101
+
- Settings to use for configuring Nuget Audit settings in csproj files. You can read more at https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#configuring-nuget-audit
102
+
- Required Properties:
103
+
- NuGetAudit
104
+
- Boolean. What value to set for the `NuGetAudit` property in the csproj file.
105
+
- AuditMode
106
+
- String. What value to set for the `NuGetAuditMode` property in the csproj file. Valid values are `direct` and `all`.
107
+
- AuditLevel
108
+
- String. What value to set for the `NuGetAuditLevel` property in the csproj file. Valid values are: `low`, `moderate`, `high`, and `critical`
109
+
- UpdateOptions
110
+
- Optional
111
+
- Settings to use for updating NuGet packages in csproj files
112
+
- Required Properties:
113
+
- UpdateTopLevelNugetsInCsProj
114
+
- Boolean. True to updates all referenced nugets to the latest version. These are the references in the csproj files.
115
+
- UpdateTopLevelNugetsNotInCsProj
116
+
- Boolean. True to updates all indirect nugets to the latest version. These are the nugets that are referenced automatically based on SDK chosen or something like that.
110
117
- NpmOptions
111
118
- Optional
112
119
- Options for updating Npm packages. If this is not set, NPM packages will not be updated
@@ -120,7 +127,7 @@ This is a config file used by the app to determine what updates to run. It is co
120
127
- String. Npm command to "compile" the npm directory. The CLI command that will be run is: `npm run {{NpmBuildCommand}}`
121
128
- RegexSearchOptions
122
129
- Optional
123
-
- Regex to search for specific string. Handy for finding things you need to manually update, that this tool can't easily do. For example, setting the correct version of .NET in a YAML file for a CI/CD Pipeline
130
+
- Regex to search for specific string. Handy for finding things you need to manually update, that this tool can't easily do. For example, use this to search for the hard coded .NET version in a YAML file for a CI/CD Pipeline so you know where to manually update it
124
131
- Required Properties:
125
132
- Searches:
126
133
- Collection of searches to make in all files that are not ignored
@@ -135,49 +142,52 @@ This is a config file used by the app to determine what updates to run. It is co
Copy file name to clipboardExpand all lines: src/CodeUpdater/CodeUpdater/Options/UpdateOptions.cs
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ public class UpdateOptions
22
22
publicNpmOptions?NpmOptions{get;set;}
23
23
24
24
/// <summary>
25
-
/// Regex to search for specific string. Handy for finding things you need to manually update, that this tool can't easily do. For example, setting the correct version of .NET in a YAML file for a CI/CD Pipeline
25
+
/// Regex to search for specific string. Handy for finding things you need to manually update, that this tool can't easily do. For example, use this to search for the hard coded .NET version in a YAML file for a CI/CD Pipeline so you know where to manually update it
/// Options for compiling Npm packages after updates. Note if this is not set, but the parent NpmOptions is set, NPM Packages will be updated but not tested with a compile.
0 commit comments