dependabot-nuget 0.240.0 → 0.242.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/build +45 -0
- data/helpers/lib/NuGetUpdater/.editorconfig +364 -0
- data/helpers/lib/NuGetUpdater/.gitignore +5 -0
- data/helpers/lib/NuGetUpdater/Directory.Build.props +10 -0
- data/helpers/lib/NuGetUpdater/Directory.Common.props +16 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/Directory.Build.props +14 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/Directory.Build.targets +7 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/Directory.Packages.props +29 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Build.Tasks/NuGet.Build.Tasks.csproj +27 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.CommandLine/AssemblyMetadataExtractor.cs +203 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.CommandLine/NuGet.CommandLine.csproj +33 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Commands/NuGet.Commands.csproj +26 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Common/NuGet.Common.csproj +21 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Config +6 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Configuration/NuGet.Configuration.csproj +24 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Credentials/NuGet.Credentials.csproj +20 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.DependencyResolver.Core/NuGet.DependencyResolver.Core.csproj +22 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Frameworks/NuGet.Frameworks.csproj +17 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.LibraryModel/NuGet.LibraryModel.csproj +17 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.PackageManagement/NuGet.PackageManagement.csproj +27 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Packaging/NuGet.Packaging.csproj +28 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.ProjectModel/NuGet.ProjectModel.csproj +20 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Protocol/NuGet.Protocol.csproj +21 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Resolver/NuGet.Resolver.csproj +20 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Versioning/NuGet.Versioning.csproj +17 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/README.md +1 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/FrameworkCheckCommand.cs +35 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/UpdateCommand.cs +43 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/NuGetUpdater.Cli.csproj +20 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Program.cs +31 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.FrameworkCheck.cs +42 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs +323 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/NuGetUpdater.Cli.Test.csproj +24 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Dependency.cs +3 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/DependencyType.cs +12 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/BuildFile.cs +97 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/DotNetToolsJsonBuildFile.cs +23 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/GlobalJsonBuildFile.cs +36 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/JsonBuildFile.cs +47 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/PackagesConfigBuildFile.cs +31 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/ProjectBuildFile.cs +94 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/XmlBuildFile.cs +14 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/CompatabilityChecker.cs +39 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/FrameworkCompatibilityService.cs +73 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/SupportedFrameworks.cs +146 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/NuGetUpdater.Core.csproj +27 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectManager.cs +316 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectResolver.cs +87 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/ConfigurationFile.cs +3 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/DotNetToolsJsonUpdater.cs +66 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/GlobalJsonUpdater.cs +48 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/PackagesConfigUpdater.cs +172 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs +498 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdateResult.cs +7 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdaterWorker.cs +105 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/JsonHelper.cs +222 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/Logger.cs +24 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/MSBuildHelper.cs +460 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/NuGetHelper.cs +15 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/PathHelper.cs +69 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ProcessExtensions.cs +83 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/XmlExtensions.cs +124 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/DotNetToolsJsonBuildFileTests.cs +53 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/GlobalJsonBuildFileTests.cs +80 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/PackagesConfigBuildFileTests.cs +63 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/ProjectBuildFileTests.cs +154 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/CompatibilityCheckerFacts.cs +64 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/FrameworkCompatibilityServiceFacts.cs +122 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/SupportedFrameworkFacts.cs +68 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/NuGetUpdater.Core.Test.csproj +23 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TemporaryDirectory.cs +36 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestExtensions.cs +15 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/PackagesConfigUpdaterTests.cs +79 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorker.DirsProj.cs +201 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTestBase.cs +147 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.DotNetTools.cs +225 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.GlobalJson.cs +217 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Mixed.cs +94 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackagesConfig.cs +938 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs +2177 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/JsonHelperTests.cs +239 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/MSBuildHelperTests.cs +598 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/SdkPackageUpdaterHelperTests.cs +179 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/SdkPackageUpdaterTests.cs +238 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.sln +152 -0
- data/helpers/lib/NuGetUpdater/xunit.runner.json +4 -0
- data/lib/dependabot/nuget/metadata_finder.rb +4 -4
- metadata +91 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11b0607da6a75d27dbe0c012d5b3917a226fd3da340cbcc59bf70dc1ab49dea3
|
4
|
+
data.tar.gz: f757ea68e946791be5d44df566a91dff248f98c60be84253a25d399c24b881bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cce478626cb19d1d3daec2b23b2448445ddbf02fde1ffa80cd1372600852cb9e7c5fc2026303f9dfb8de3938870db16a2b531c04b160ede96c7c473bb673b3e3
|
7
|
+
data.tar.gz: 9f084e5dfc866baa1b38cb01d2a55a9c6738b1e06703961fb33676353e4fda8095c36a951bb0a3515c503fe351582089b93d0faeac709e3e3e4f3706b158ec09
|
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,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,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>
|