dependabot-nuget 0.240.0 → 0.241.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/helpers/build +45 -0
  3. data/helpers/lib/NuGetUpdater/.editorconfig +364 -0
  4. data/helpers/lib/NuGetUpdater/.gitignore +5 -0
  5. data/helpers/lib/NuGetUpdater/Directory.Build.props +10 -0
  6. data/helpers/lib/NuGetUpdater/Directory.Common.props +16 -0
  7. data/helpers/lib/NuGetUpdater/NuGetProjects/Directory.Build.props +14 -0
  8. data/helpers/lib/NuGetUpdater/NuGetProjects/Directory.Build.targets +7 -0
  9. data/helpers/lib/NuGetUpdater/NuGetProjects/Directory.Packages.props +29 -0
  10. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Build.Tasks/NuGet.Build.Tasks.csproj +27 -0
  11. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.CommandLine/AssemblyMetadataExtractor.cs +203 -0
  12. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.CommandLine/NuGet.CommandLine.csproj +33 -0
  13. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Commands/NuGet.Commands.csproj +26 -0
  14. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Common/NuGet.Common.csproj +21 -0
  15. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Config +6 -0
  16. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Configuration/NuGet.Configuration.csproj +24 -0
  17. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Credentials/NuGet.Credentials.csproj +20 -0
  18. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.DependencyResolver.Core/NuGet.DependencyResolver.Core.csproj +22 -0
  19. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Frameworks/NuGet.Frameworks.csproj +17 -0
  20. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.LibraryModel/NuGet.LibraryModel.csproj +17 -0
  21. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.PackageManagement/NuGet.PackageManagement.csproj +27 -0
  22. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Packaging/NuGet.Packaging.csproj +28 -0
  23. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.ProjectModel/NuGet.ProjectModel.csproj +20 -0
  24. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Protocol/NuGet.Protocol.csproj +21 -0
  25. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Resolver/NuGet.Resolver.csproj +20 -0
  26. data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Versioning/NuGet.Versioning.csproj +17 -0
  27. data/helpers/lib/NuGetUpdater/NuGetProjects/README.md +1 -0
  28. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/FrameworkCheckCommand.cs +35 -0
  29. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/UpdateCommand.cs +43 -0
  30. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/NuGetUpdater.Cli.csproj +20 -0
  31. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Program.cs +31 -0
  32. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.FrameworkCheck.cs +42 -0
  33. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs +323 -0
  34. data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/NuGetUpdater.Cli.Test.csproj +24 -0
  35. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Dependency.cs +3 -0
  36. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/DependencyType.cs +12 -0
  37. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/BuildFile.cs +97 -0
  38. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/DotNetToolsJsonBuildFile.cs +24 -0
  39. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/GlobalJsonBuildFile.cs +25 -0
  40. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/JsonBuildFile.cs +32 -0
  41. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/PackagesConfigBuildFile.cs +31 -0
  42. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/ProjectBuildFile.cs +94 -0
  43. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/XmlBuildFile.cs +14 -0
  44. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/CompatabilityChecker.cs +39 -0
  45. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/FrameworkCompatibilityService.cs +73 -0
  46. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/SupportedFrameworks.cs +146 -0
  47. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/NuGetUpdater.Core.csproj +27 -0
  48. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectManager.cs +316 -0
  49. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectResolver.cs +87 -0
  50. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/ConfigurationFile.cs +3 -0
  51. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/DotNetToolsJsonUpdater.cs +66 -0
  52. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/GlobalJsonUpdater.cs +48 -0
  53. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/PackagesConfigUpdater.cs +172 -0
  54. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs +498 -0
  55. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdateResult.cs +7 -0
  56. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdaterWorker.cs +105 -0
  57. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/JsonHelper.cs +222 -0
  58. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/Logger.cs +24 -0
  59. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/MSBuildHelper.cs +443 -0
  60. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/NuGetHelper.cs +15 -0
  61. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/PathHelper.cs +69 -0
  62. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ProcessExtensions.cs +66 -0
  63. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/XmlExtensions.cs +124 -0
  64. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/DotNetToolsJsonBuildFileTests.cs +52 -0
  65. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/GlobalJsonBuildFileTests.cs +63 -0
  66. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/PackagesConfigBuildFileTests.cs +63 -0
  67. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/ProjectBuildFileTests.cs +154 -0
  68. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/CompatibilityCheckerFacts.cs +64 -0
  69. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/FrameworkCompatibilityServiceFacts.cs +122 -0
  70. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/SupportedFrameworkFacts.cs +68 -0
  71. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/NuGetUpdater.Core.Test.csproj +23 -0
  72. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TemporaryDirectory.cs +36 -0
  73. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestExtensions.cs +15 -0
  74. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/PackagesConfigUpdaterTests.cs +79 -0
  75. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorker.DirsProj.cs +201 -0
  76. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTestBase.cs +147 -0
  77. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.DotNetTools.cs +225 -0
  78. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.GlobalJson.cs +217 -0
  79. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Mixed.cs +94 -0
  80. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackagesConfig.cs +938 -0
  81. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs +2177 -0
  82. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/JsonHelperTests.cs +239 -0
  83. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/MSBuildHelperTests.cs +394 -0
  84. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/SdkPackageUpdaterHelperTests.cs +179 -0
  85. data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/SdkPackageUpdaterTests.cs +238 -0
  86. data/helpers/lib/NuGetUpdater/NuGetUpdater.sln +152 -0
  87. data/helpers/lib/NuGetUpdater/xunit.runner.json +4 -0
  88. data/lib/dependabot/nuget/metadata_finder.rb +4 -4
  89. metadata +91 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d8152c074be84d639b86fe67da074f558ca1509102a5a1e9e97c3411178a747
4
- data.tar.gz: 6562552b5b89ddfc8c521aeb7a52cf17e2d918c230439f70281663d5e8e45811
3
+ metadata.gz: c4785ffa6c4f7a334d8c7d57932d82420af791410a4ebfe9a38f2ee73da5d271
4
+ data.tar.gz: 0cfcaa2b152867cccce8907eb64d98a72d217626467ee25bfb5ea2bb1839e0c0
5
5
  SHA512:
6
- metadata.gz: 6d91dec9cd6d5db739507bfc91d6454b6f21426a60a2086bd7b944922d4fa123886dbb1037a94b712471deeb89d175c1b0f10a2b84aeb7f6810f3aeddb92eecb
7
- data.tar.gz: 7dbe0cacc3ffaa2d9290e09da5026a94432b8f45b839c6db49905b40636188c0201b61f6650aa1a01fa36fe590672b3e0359b8d4139d1bfe26d98dac344b494a
6
+ metadata.gz: f3dd5df35c8cd6e2991e61c6327f9144c6c600578c477309b7a0624a0a768d356fada0d2e33e3a9d5695cb8c8271e75e639f0b5246db9795c97425d23e1ae99f
7
+ data.tar.gz: b8424ae0c6d11cba9066601d4db01e16e2382d633814b091cd5ae14f38da505d6504bed7c2285eb634bf173a1353245bbefeaedeee26b8cbebf513c1188955cb
data/helpers/build ADDED
@@ -0,0 +1,45 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ if [ -z "$DEPENDABOT_NATIVE_HELPERS_PATH" ]; then
6
+ echo "Unable to build, DEPENDABOT_NATIVE_HELPERS_PATH is not set"
7
+ exit 1
8
+ fi
9
+
10
+ helpers_dir=$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)
11
+
12
+ if [ ! -f "$helpers_dir/lib/NuGet.Client/NuGet.sln" ]; then
13
+ echo "NuGet.sln not found; please run 'git submodule update --init --recursive' and try again"
14
+ exit 1
15
+ fi
16
+
17
+ install_dir="$DEPENDABOT_NATIVE_HELPERS_PATH/nuget"
18
+ mkdir -p "$install_dir"
19
+
20
+ cp -r \
21
+ "$helpers_dir/lib" \
22
+ "$install_dir"
23
+
24
+ os="$(uname -s | tr '[:upper:]' '[:lower:]')"
25
+ arch=$(dpkg --print-architecture)
26
+ if [ "$arch" = "amd64" ]; then
27
+ arch="x64"
28
+ fi
29
+
30
+ echo "building NuGetUpdater tool"
31
+ cd "$install_dir/lib/NuGetUpdater/NuGetUpdater.Cli"
32
+ dotnet publish \
33
+ --configuration Release \
34
+ --output "$install_dir/NuGetUpdater" \
35
+ --framework net8.0 \
36
+ --runtime "$os-$arch"
37
+ dotnet clean
38
+
39
+ echo "verifying NuGetUpdater tool"
40
+ "$install_dir/NuGetUpdater/NuGetUpdater.Cli" --version
41
+
42
+ if [ ! -f "$HOME/.nuget/NuGet/NuGet.Config" ]; then
43
+ echo "user-level NuGet.Config not found; credential patching will not work"
44
+ exit 1
45
+ fi
@@ -0,0 +1,364 @@
1
+ root = true
2
+
3
+ # All files
4
+ [*]
5
+ indent_style = space
6
+ charset = utf-8
7
+
8
+ # Xml files
9
+ [*.xml]
10
+ indent_size = 2
11
+
12
+ # C# files
13
+ [*.cs]
14
+
15
+ #### Core EditorConfig Options ####
16
+
17
+ # Indentation and spacing
18
+ indent_size = 4
19
+ tab_width = 4
20
+
21
+ # New line preferences
22
+ insert_final_newline = true
23
+
24
+ #### .NET Coding Conventions ####
25
+ [*.{cs,vb}]
26
+
27
+ # Organize usings
28
+ dotnet_separate_import_directive_groups = true
29
+ dotnet_sort_system_directives_first = true
30
+ file_header_template = unset
31
+
32
+ # this. and Me. preferences
33
+ dotnet_style_qualification_for_event = false:silent
34
+ dotnet_style_qualification_for_field = false:silent
35
+ dotnet_style_qualification_for_method = false:silent
36
+ dotnet_style_qualification_for_property = false:silent
37
+
38
+ # Language keywords vs BCL types preferences
39
+ dotnet_style_predefined_type_for_locals_parameters_members = true:silent
40
+ dotnet_style_predefined_type_for_member_access = true:silent
41
+
42
+ # Parentheses preferences
43
+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
44
+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
45
+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
46
+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
47
+
48
+ # Modifier preferences
49
+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
50
+
51
+ # Expression-level preferences
52
+ dotnet_style_coalesce_expression = true:suggestion
53
+ dotnet_style_collection_initializer = true:suggestion
54
+ dotnet_style_explicit_tuple_names = true:suggestion
55
+ dotnet_style_null_propagation = true:suggestion
56
+ dotnet_style_object_initializer = true:suggestion
57
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
58
+ dotnet_style_prefer_auto_properties = true:suggestion
59
+ dotnet_style_prefer_compound_assignment = true:suggestion
60
+ dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
61
+ dotnet_style_prefer_conditional_expression_over_return = true:suggestion
62
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
63
+ dotnet_style_prefer_inferred_tuple_names = true:suggestion
64
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
65
+ dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
66
+ dotnet_style_prefer_simplified_interpolation = true:suggestion
67
+
68
+ # Field preferences
69
+ dotnet_style_readonly_field = true:warning
70
+
71
+ # Parameter preferences
72
+ dotnet_code_quality_unused_parameters = all:suggestion
73
+
74
+ # Suppression preferences
75
+ dotnet_remove_unnecessary_suppression_exclusions = none
76
+
77
+ #### C# Coding Conventions ####
78
+ [*.cs]
79
+
80
+ # var preferences
81
+ csharp_style_var_elsewhere = false:silent
82
+ csharp_style_var_for_built_in_types = false:silent
83
+ csharp_style_var_when_type_is_apparent = false:silent
84
+
85
+ # Expression-bodied members
86
+ csharp_style_expression_bodied_accessors = true:silent
87
+ csharp_style_expression_bodied_constructors = false:silent
88
+ csharp_style_expression_bodied_indexers = true:silent
89
+ csharp_style_expression_bodied_lambdas = true:suggestion
90
+ csharp_style_expression_bodied_local_functions = false:silent
91
+ csharp_style_expression_bodied_methods = false:silent
92
+ csharp_style_expression_bodied_operators = false:silent
93
+ csharp_style_expression_bodied_properties = true:silent
94
+
95
+ # Pattern matching preferences
96
+ csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
97
+ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
98
+ csharp_style_prefer_not_pattern = true:suggestion
99
+ csharp_style_prefer_pattern_matching = true:silent
100
+ csharp_style_prefer_switch_expression = true:suggestion
101
+
102
+ # Null-checking preferences
103
+ csharp_style_conditional_delegate_call = true:suggestion
104
+
105
+ # Modifier preferences
106
+ csharp_prefer_static_local_function = true:warning
107
+ csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
108
+
109
+ # Code-block preferences
110
+ csharp_prefer_braces = true:silent
111
+ csharp_prefer_simple_using_statement = true:suggestion
112
+
113
+ # Expression-level preferences
114
+ csharp_prefer_simple_default_expression = true:suggestion
115
+ csharp_style_deconstructed_variable_declaration = true:suggestion
116
+ csharp_style_inlined_variable_declaration = true:suggestion
117
+ csharp_style_pattern_local_over_anonymous_function = true:suggestion
118
+ csharp_style_prefer_index_operator = true:suggestion
119
+ csharp_style_prefer_range_operator = true:suggestion
120
+ csharp_style_throw_expression = true:suggestion
121
+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
122
+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
123
+
124
+ # 'using' directive preferences
125
+ csharp_using_directive_placement = outside_namespace:silent
126
+
127
+ #### C# Formatting Rules ####
128
+
129
+ # New line preferences
130
+ csharp_new_line_before_catch = true
131
+ csharp_new_line_before_else = true
132
+ csharp_new_line_before_finally = true
133
+ csharp_new_line_before_members_in_anonymous_types = true
134
+ csharp_new_line_before_members_in_object_initializers = true
135
+ csharp_new_line_before_open_brace = all
136
+ csharp_new_line_between_query_expression_clauses = true
137
+
138
+ # Indentation preferences
139
+ csharp_indent_block_contents = true
140
+ csharp_indent_braces = false
141
+ csharp_indent_case_contents = true
142
+ csharp_indent_case_contents_when_block = true
143
+ csharp_indent_labels = one_less_than_current
144
+ csharp_indent_switch_labels = true
145
+
146
+ # Space preferences
147
+ csharp_space_after_cast = false
148
+ csharp_space_after_colon_in_inheritance_clause = true
149
+ csharp_space_after_comma = true
150
+ csharp_space_after_dot = false
151
+ csharp_space_after_keywords_in_control_flow_statements = true
152
+ csharp_space_after_semicolon_in_for_statement = true
153
+ csharp_space_around_binary_operators = before_and_after
154
+ csharp_space_around_declaration_statements = false
155
+ csharp_space_before_colon_in_inheritance_clause = true
156
+ csharp_space_before_comma = false
157
+ csharp_space_before_dot = false
158
+ csharp_space_before_open_square_brackets = false
159
+ csharp_space_before_semicolon_in_for_statement = false
160
+ csharp_space_between_empty_square_brackets = false
161
+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
162
+ csharp_space_between_method_call_name_and_opening_parenthesis = false
163
+ csharp_space_between_method_call_parameter_list_parentheses = false
164
+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
165
+ csharp_space_between_method_declaration_name_and_open_parenthesis = false
166
+ csharp_space_between_method_declaration_parameter_list_parentheses = false
167
+ csharp_space_between_parentheses = false
168
+ csharp_space_between_square_brackets = false
169
+
170
+ # Wrapping preferences
171
+ csharp_preserve_single_line_blocks = true
172
+ csharp_preserve_single_line_statements = true
173
+
174
+ #### Naming styles ####
175
+ [*.{cs,vb}]
176
+
177
+ # Naming rules
178
+
179
+ dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.severity = suggestion
180
+ dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.symbols = types_and_namespaces
181
+ dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.style = pascalcase
182
+
183
+ dotnet_naming_rule.interfaces_should_be_ipascalcase.severity = suggestion
184
+ dotnet_naming_rule.interfaces_should_be_ipascalcase.symbols = interfaces
185
+ dotnet_naming_rule.interfaces_should_be_ipascalcase.style = ipascalcase
186
+
187
+ dotnet_naming_rule.type_parameters_should_be_tpascalcase.severity = suggestion
188
+ dotnet_naming_rule.type_parameters_should_be_tpascalcase.symbols = type_parameters
189
+ dotnet_naming_rule.type_parameters_should_be_tpascalcase.style = tpascalcase
190
+
191
+ dotnet_naming_rule.methods_should_be_pascalcase.severity = suggestion
192
+ dotnet_naming_rule.methods_should_be_pascalcase.symbols = methods
193
+ dotnet_naming_rule.methods_should_be_pascalcase.style = pascalcase
194
+
195
+ dotnet_naming_rule.properties_should_be_pascalcase.severity = suggestion
196
+ dotnet_naming_rule.properties_should_be_pascalcase.symbols = properties
197
+ dotnet_naming_rule.properties_should_be_pascalcase.style = pascalcase
198
+
199
+ dotnet_naming_rule.events_should_be_pascalcase.severity = suggestion
200
+ dotnet_naming_rule.events_should_be_pascalcase.symbols = events
201
+ dotnet_naming_rule.events_should_be_pascalcase.style = pascalcase
202
+
203
+ dotnet_naming_rule.local_variables_should_be_camelcase.severity = suggestion
204
+ dotnet_naming_rule.local_variables_should_be_camelcase.symbols = local_variables
205
+ dotnet_naming_rule.local_variables_should_be_camelcase.style = camelcase
206
+
207
+ dotnet_naming_rule.local_constants_should_be_camelcase.severity = suggestion
208
+ dotnet_naming_rule.local_constants_should_be_camelcase.symbols = local_constants
209
+ dotnet_naming_rule.local_constants_should_be_camelcase.style = camelcase
210
+
211
+ dotnet_naming_rule.parameters_should_be_camelcase.severity = suggestion
212
+ dotnet_naming_rule.parameters_should_be_camelcase.symbols = parameters
213
+ dotnet_naming_rule.parameters_should_be_camelcase.style = camelcase
214
+
215
+ dotnet_naming_rule.public_fields_should_be_pascalcase.severity = suggestion
216
+ dotnet_naming_rule.public_fields_should_be_pascalcase.symbols = public_fields
217
+ dotnet_naming_rule.public_fields_should_be_pascalcase.style = pascalcase
218
+
219
+ dotnet_naming_rule.private_fields_should_be__camelcase.severity = suggestion
220
+ dotnet_naming_rule.private_fields_should_be__camelcase.symbols = private_fields
221
+ dotnet_naming_rule.private_fields_should_be__camelcase.style = _camelcase
222
+
223
+ dotnet_naming_rule.private_static_fields_should_be_s_camelcase.severity = suggestion
224
+ dotnet_naming_rule.private_static_fields_should_be_s_camelcase.symbols = private_static_fields
225
+ dotnet_naming_rule.private_static_fields_should_be_s_camelcase.style = s_camelcase
226
+
227
+ dotnet_naming_rule.public_constant_fields_should_be_pascalcase.severity = suggestion
228
+ dotnet_naming_rule.public_constant_fields_should_be_pascalcase.symbols = public_constant_fields
229
+ dotnet_naming_rule.public_constant_fields_should_be_pascalcase.style = pascalcase
230
+
231
+ dotnet_naming_rule.private_constant_fields_should_be_pascalcase.severity = suggestion
232
+ dotnet_naming_rule.private_constant_fields_should_be_pascalcase.symbols = private_constant_fields
233
+ dotnet_naming_rule.private_constant_fields_should_be_pascalcase.style = pascalcase
234
+
235
+ dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.severity = suggestion
236
+ dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.symbols = public_static_readonly_fields
237
+ dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.style = pascalcase
238
+
239
+ dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.severity = suggestion
240
+ dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.symbols = private_static_readonly_fields
241
+ dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.style = pascalcase
242
+
243
+ dotnet_naming_rule.enums_should_be_pascalcase.severity = suggestion
244
+ dotnet_naming_rule.enums_should_be_pascalcase.symbols = enums
245
+ dotnet_naming_rule.enums_should_be_pascalcase.style = pascalcase
246
+
247
+ dotnet_naming_rule.local_functions_should_be_pascalcase.severity = suggestion
248
+ dotnet_naming_rule.local_functions_should_be_pascalcase.symbols = local_functions
249
+ dotnet_naming_rule.local_functions_should_be_pascalcase.style = pascalcase
250
+
251
+ dotnet_naming_rule.non_field_members_should_be_pascalcase.severity = suggestion
252
+ dotnet_naming_rule.non_field_members_should_be_pascalcase.symbols = non_field_members
253
+ dotnet_naming_rule.non_field_members_should_be_pascalcase.style = pascalcase
254
+
255
+ # Symbol specifications
256
+
257
+ dotnet_naming_symbols.interfaces.applicable_kinds = interface
258
+ dotnet_naming_symbols.interfaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
259
+ dotnet_naming_symbols.interfaces.required_modifiers =
260
+
261
+ dotnet_naming_symbols.enums.applicable_kinds = enum
262
+ dotnet_naming_symbols.enums.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
263
+ dotnet_naming_symbols.enums.required_modifiers =
264
+
265
+ dotnet_naming_symbols.events.applicable_kinds = event
266
+ dotnet_naming_symbols.events.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
267
+ dotnet_naming_symbols.events.required_modifiers =
268
+
269
+ dotnet_naming_symbols.methods.applicable_kinds = method
270
+ dotnet_naming_symbols.methods.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
271
+ dotnet_naming_symbols.methods.required_modifiers =
272
+
273
+ dotnet_naming_symbols.properties.applicable_kinds = property
274
+ dotnet_naming_symbols.properties.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
275
+ dotnet_naming_symbols.properties.required_modifiers =
276
+
277
+ dotnet_naming_symbols.public_fields.applicable_kinds = field
278
+ dotnet_naming_symbols.public_fields.applicable_accessibilities = public, internal
279
+ dotnet_naming_symbols.public_fields.required_modifiers =
280
+
281
+ dotnet_naming_symbols.private_fields.applicable_kinds = field
282
+ dotnet_naming_symbols.private_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
283
+ dotnet_naming_symbols.private_fields.required_modifiers =
284
+
285
+ dotnet_naming_symbols.private_static_fields.applicable_kinds = field
286
+ dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
287
+ dotnet_naming_symbols.private_static_fields.required_modifiers = static
288
+
289
+ dotnet_naming_symbols.types_and_namespaces.applicable_kinds = namespace, class, struct, interface, enum
290
+ dotnet_naming_symbols.types_and_namespaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
291
+ dotnet_naming_symbols.types_and_namespaces.required_modifiers =
292
+
293
+ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
294
+ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
295
+ dotnet_naming_symbols.non_field_members.required_modifiers =
296
+
297
+ dotnet_naming_symbols.type_parameters.applicable_kinds = namespace
298
+ dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
299
+ dotnet_naming_symbols.type_parameters.required_modifiers =
300
+
301
+ dotnet_naming_symbols.private_constant_fields.applicable_kinds = field
302
+ dotnet_naming_symbols.private_constant_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
303
+ dotnet_naming_symbols.private_constant_fields.required_modifiers = const
304
+
305
+ dotnet_naming_symbols.local_variables.applicable_kinds = local
306
+ dotnet_naming_symbols.local_variables.applicable_accessibilities = local
307
+ dotnet_naming_symbols.local_variables.required_modifiers =
308
+
309
+ dotnet_naming_symbols.local_constants.applicable_kinds = local
310
+ dotnet_naming_symbols.local_constants.applicable_accessibilities = local
311
+ dotnet_naming_symbols.local_constants.required_modifiers = const
312
+
313
+ dotnet_naming_symbols.parameters.applicable_kinds = parameter
314
+ dotnet_naming_symbols.parameters.applicable_accessibilities = *
315
+ dotnet_naming_symbols.parameters.required_modifiers =
316
+
317
+ dotnet_naming_symbols.public_constant_fields.applicable_kinds = field
318
+ dotnet_naming_symbols.public_constant_fields.applicable_accessibilities = public, internal
319
+ dotnet_naming_symbols.public_constant_fields.required_modifiers = const
320
+
321
+ dotnet_naming_symbols.public_static_readonly_fields.applicable_kinds = field
322
+ dotnet_naming_symbols.public_static_readonly_fields.applicable_accessibilities = public, internal
323
+ dotnet_naming_symbols.public_static_readonly_fields.required_modifiers = readonly, static
324
+
325
+ dotnet_naming_symbols.private_static_readonly_fields.applicable_kinds = field
326
+ dotnet_naming_symbols.private_static_readonly_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
327
+ dotnet_naming_symbols.private_static_readonly_fields.required_modifiers = readonly, static
328
+
329
+ dotnet_naming_symbols.local_functions.applicable_kinds = local_function
330
+ dotnet_naming_symbols.local_functions.applicable_accessibilities = *
331
+ dotnet_naming_symbols.local_functions.required_modifiers =
332
+
333
+ # Naming styles
334
+
335
+ dotnet_naming_style.pascalcase.required_prefix =
336
+ dotnet_naming_style.pascalcase.required_suffix =
337
+ dotnet_naming_style.pascalcase.word_separator =
338
+ dotnet_naming_style.pascalcase.capitalization = pascal_case
339
+
340
+ dotnet_naming_style.ipascalcase.required_prefix = I
341
+ dotnet_naming_style.ipascalcase.required_suffix =
342
+ dotnet_naming_style.ipascalcase.word_separator =
343
+ dotnet_naming_style.ipascalcase.capitalization = pascal_case
344
+
345
+ dotnet_naming_style.tpascalcase.required_prefix = T
346
+ dotnet_naming_style.tpascalcase.required_suffix =
347
+ dotnet_naming_style.tpascalcase.word_separator =
348
+ dotnet_naming_style.tpascalcase.capitalization = pascal_case
349
+
350
+ dotnet_naming_style._camelcase.required_prefix = _
351
+ dotnet_naming_style._camelcase.required_suffix =
352
+ dotnet_naming_style._camelcase.word_separator =
353
+ dotnet_naming_style._camelcase.capitalization = camel_case
354
+
355
+ dotnet_naming_style.camelcase.required_prefix =
356
+ dotnet_naming_style.camelcase.required_suffix =
357
+ dotnet_naming_style.camelcase.word_separator =
358
+ dotnet_naming_style.camelcase.capitalization = camel_case
359
+
360
+ dotnet_naming_style.s_camelcase.required_prefix = s_
361
+ dotnet_naming_style.s_camelcase.required_suffix =
362
+ dotnet_naming_style.s_camelcase.word_separator =
363
+ dotnet_naming_style.s_camelcase.capitalization = camel_case
364
+
@@ -0,0 +1,5 @@
1
+ .vs/
2
+ artifacts/
3
+ bin/
4
+ obj/
5
+ Properties/launchSettings.json
@@ -0,0 +1,10 @@
1
+ <Project>
2
+
3
+ <PropertyGroup>
4
+ <NoWarn>$(NoWarn);NU1701</NoWarn>
5
+ <Nullable>enable</Nullable>
6
+ </PropertyGroup>
7
+
8
+ <Import Project="Directory.Common.props" />
9
+
10
+ </Project>
@@ -0,0 +1,16 @@
1
+ <Project>
2
+ <PropertyGroup>
3
+ <!--
4
+ When updating the common target framework below, you will also need to:
5
+
6
+ 1. Copy the latest `SupportedFrameworks.cs` from
7
+ https://github.com/NuGet/NuGetGallery/blob/main/src/NuGetGallery.Core/Frameworks/SupportedFrameworks.cs
8
+ to
9
+ NuGetUpdater\NuGetUpdater.Core\FrameworkChecker\SupportedFrameworks.cs
10
+ 2. Update tests as needed at `NuGetUpdater\NuGetUpdater.Core.Test\FrameworkChecker\CompatibilityCheckerFacts.cs`
11
+ -->
12
+ <CommonTargetFramework>net8.0</CommonTargetFramework>
13
+ <UseArtifactsOutput>true</UseArtifactsOutput>
14
+ <ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
15
+ </PropertyGroup>
16
+ </Project>
@@ -0,0 +1,14 @@
1
+ <Project>
2
+
3
+ <PropertyGroup>
4
+ <DefineConstants>$(DefineConstants);IS_CORECLR</DefineConstants>
5
+ <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
6
+ <NoWarn>$(NoWarn);NU1701</NoWarn>
7
+ <NuGetSourceLocation>$(MSBuildThisFileDirectory)..\..\NuGet.Client</NuGetSourceLocation>
8
+ <SharedDirectory>$(NuGetSourceLocation)\build\Shared</SharedDirectory>
9
+ <Version>6.8.0</Version>
10
+ </PropertyGroup>
11
+
12
+ <Import Project="..\Directory.Common.props" />
13
+
14
+ </Project>
@@ -0,0 +1,7 @@
1
+ <Project>
2
+
3
+ <ItemGroup>
4
+ <Compile Include="$(SharedDirectory)\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
5
+ </ItemGroup>
6
+
7
+ </Project>
@@ -0,0 +1,29 @@
1
+ <Project>
2
+
3
+ <PropertyGroup>
4
+ <MicrosoftBuildVersion>17.5.0</MicrosoftBuildVersion>
5
+ <MicrosoftExtensionsFileProvidersAbstractionsPackageVersion>6.0.0</MicrosoftExtensionsFileProvidersAbstractionsPackageVersion>
6
+ <MicrosoftExtensionsFileSystemGlobbingPackageVersion>6.0.0</MicrosoftExtensionsFileSystemGlobbingPackageVersion>
7
+ <MicrosoftWebXdtPackageVersion>3.0.0</MicrosoftWebXdtPackageVersion>
8
+ <SystemPackagesVersion>4.3.0</SystemPackagesVersion>
9
+ <CryptographyPackagesVersion>5.0.0</CryptographyPackagesVersion>
10
+ </PropertyGroup>
11
+
12
+ <ItemGroup>
13
+ <PackageVersion Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildVersion)" />
14
+ <PackageVersion Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildVersion)" />
15
+ <PackageVersion Include="Microsoft.CSharp" Version="$(SystemPackagesVersion)" />
16
+ <PackageVersion Include="Microsoft.Extensions.FileProviders.Abstractions" Version="$(MicrosoftExtensionsFileProvidersAbstractionsPackageVersion)" />
17
+ <PackageVersion Include="Microsoft.Extensions.FileSystemGlobbing" Version="$(MicrosoftExtensionsFileSystemGlobbingPackageVersion)" />
18
+ <PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="3.4.2244" />
19
+ <PackageVersion Include="Microsoft.Web.Xdt" Version="$(MicrosoftWebXdtPackageVersion)" />
20
+ <PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
21
+ <PackageVersion Include="NuGet.Core" Version="2.14.0-rtm-832" />
22
+ <PackageVersion Include="System.ComponentModel.Composition" Version="7.0.0" />
23
+ <PackageVersion Include="System.Security.Cryptography.Cng" Version="$(CryptographyPackagesVersion)" />
24
+ <PackageVersion Include="System.Security.Cryptography.Pkcs" Version="$(CryptographyPackagesVersion)" />
25
+ <PackageVersion Include="System.Security.Cryptography.ProtectedData" Version="4.4.0" />
26
+ <PackageVersion Include="System.Threading.Tasks.Dataflow" Version="6.0.0" />
27
+ </ItemGroup>
28
+
29
+ </Project>
@@ -0,0 +1,27 @@
1
+ <Project Sdk="Microsoft.NET.Sdk">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>$(CommonTargetFramework)</TargetFramework>
5
+ <NoWarn>$(NoWarn);CS1591</NoWarn>
6
+ </PropertyGroup>
7
+
8
+ <ItemGroup>
9
+ <ProjectReference Include="..\NuGet.Commands\NuGet.Commands.csproj" />
10
+ <ProjectReference Include="..\NuGet.PackageManagement\NuGet.PackageManagement.csproj" />
11
+ </ItemGroup>
12
+
13
+ <ItemGroup>
14
+ <PackageReference Include="Microsoft.Build.Tasks.Core" ExcludeAssets="runtime" />
15
+ <PackageReference Include="Microsoft.Build.Utilities.Core" ExcludeAssets="runtime" />
16
+ <PackageReference Include="System.Threading.Tasks.Dataflow" />
17
+ </ItemGroup>
18
+
19
+ <ItemGroup>
20
+ <Compile Include="$(NuGetSourceLocation)\src\NuGet.Core\NuGet.Build.Tasks\**\*.cs" />
21
+ </ItemGroup>
22
+
23
+ <ItemGroup>
24
+ <EmbeddedResource Include="$(NuGetSourceLocation)\src\NuGet.Core\NuGet.Build.Tasks\**\*.resx" />
25
+ </ItemGroup>
26
+
27
+ </Project>