Skip to content

Commit 3730045

Browse files
committed
upgrade to net8.0
1 parent 3b0a467 commit 3730045

25 files changed

+1673
-1555
lines changed

.editorconfig

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
root=true
2+
3+
[*]
4+
charset=utf-8
5+
end_of_line=lf
6+
trim_trailing_whitespace=true
7+
insert_final_newline=true
8+
indent_style=space
9+
max_line_length=120
10+
11+
[*.{csproj, fsproj, sln}]
12+
indent_size=2
13+
14+
[*.{cs, csx, fs, fsx, cshtml}]
15+
indent_size=4
16+
17+
[*.ps1]
18+
indent_size = 2
19+
20+
[*.json]
21+
indent_size = 2
22+
23+
[*.sql]
24+
indent_size = 2
25+
26+
[*.html]
27+
indent_size = 2
28+
29+
[*.css]
30+
indent_size = 2
31+
32+
[*.js]
33+
indent_size = 2
34+
35+
###############################
36+
# .NET Coding Conventions #
37+
###############################
38+
[*.{cs,vb}]
39+
# Organize usings
40+
dotnet_sort_system_directives_first = true
41+
# this. preferences
42+
dotnet_style_qualification_for_field = false:silent
43+
dotnet_style_qualification_for_property = false:silent
44+
dotnet_style_qualification_for_method = false:silent
45+
dotnet_style_qualification_for_event = false:silent
46+
# Language keywords vs BCL types preferences
47+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
48+
dotnet_style_predefined_type_for_member_access = true:silent
49+
# Parentheses preferences
50+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
51+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
52+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
53+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
54+
# Modifier preferences
55+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
56+
dotnet_style_readonly_field = true:suggestion
57+
# Expression-level preferences
58+
dotnet_style_object_initializer = true:suggestion
59+
dotnet_style_collection_initializer = true:suggestion
60+
dotnet_style_explicit_tuple_names = true:suggestion
61+
dotnet_style_null_propagation = true:suggestion
62+
dotnet_style_coalesce_expression = true:suggestion
63+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
64+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
65+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
66+
dotnet_style_prefer_auto_properties = true:silent
67+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
68+
dotnet_style_prefer_conditional_expression_over_return = true:silent
69+
70+
###############################
71+
# Naming Conventions #
72+
###############################
73+
# Style Definitions
74+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
75+
# Use PascalCase for constant fields
76+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
77+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
78+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
79+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
80+
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
81+
dotnet_naming_symbols.constant_fields.required_modifiers = const
82+
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
83+
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
84+
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
85+
dotnet_naming_symbols.private_fields.applicable_kinds = field
86+
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
87+
dotnet_naming_style.prefix_underscore.capitalization = camel_case
88+
dotnet_naming_style.prefix_underscore.required_prefix = _
89+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
90+
end_of_line = crlf
91+
92+
###############################
93+
# C# Coding Conventions #
94+
###############################
95+
[*.cs]
96+
# var preferences
97+
csharp_style_var_for_built_in_types = true:silent
98+
csharp_style_var_when_type_is_apparent = true:silent
99+
csharp_style_var_elsewhere = true:silent
100+
# Expression-bodied members
101+
csharp_style_expression_bodied_methods = false:silent
102+
csharp_style_expression_bodied_constructors = false:silent
103+
csharp_style_expression_bodied_operators = false:silent
104+
csharp_style_expression_bodied_properties = true:silent
105+
csharp_style_expression_bodied_indexers = true:silent
106+
csharp_style_expression_bodied_accessors = true:silent
107+
# Pattern matching preferences
108+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
109+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
110+
# Null-checking preferences
111+
csharp_style_throw_expression = true:suggestion
112+
csharp_style_conditional_delegate_call = true:suggestion
113+
# Modifier preferences
114+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
115+
# Expression-level preferences
116+
csharp_prefer_braces = true:silent
117+
csharp_style_deconstructed_variable_declaration = true:suggestion
118+
csharp_prefer_simple_default_expression = true:suggestion
119+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
120+
csharp_style_inlined_variable_declaration = true:suggestion
121+
# Namespaces
122+
csharp_style_namespace_declarations = file_scoped:warning
123+
124+
###############################
125+
# C# Formatting Rules #
126+
###############################
127+
# New line preferences
128+
csharp_new_line_before_open_brace = all
129+
csharp_new_line_before_else = true
130+
csharp_new_line_before_catch = true
131+
csharp_new_line_before_finally = true
132+
csharp_new_line_before_members_in_object_initializers = true
133+
csharp_new_line_before_members_in_anonymous_types = true
134+
csharp_new_line_before_using_directive = true
135+
csharp_new_line_between_query_expression_clauses = true
136+
# Indentation preferences
137+
csharp_indent_case_contents = true
138+
csharp_indent_switch_labels = true
139+
csharp_indent_labels = flush_left
140+
# Space preferences
141+
csharp_space_after_cast = false
142+
csharp_space_after_keywords_in_control_flow_statements = true
143+
csharp_space_between_method_call_parameter_list_parentheses = false
144+
csharp_space_between_method_declaration_parameter_list_parentheses = false
145+
csharp_space_between_parentheses = false
146+
csharp_space_before_colon_in_inheritance_clause = true
147+
csharp_space_after_colon_in_inheritance_clause = true
148+
csharp_space_around_binary_operators = before_and_after
149+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
150+
csharp_space_between_method_call_name_and_opening_parenthesis = false
151+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
152+
# Wrapping preferences
153+
csharp_preserve_single_line_statements = true
154+
csharp_preserve_single_line_blocks = true
155+
csharp_using_directive_placement = inside_namespace:warning
156+
csharp_prefer_simple_using_statement = true:warning
157+
csharp_style_prefer_method_group_conversion = true:silent
158+
csharp_style_prefer_top_level_statements = true:silent
159+
csharp_style_prefer_primary_constructors = true:warning
160+
csharp_style_expression_bodied_lambdas = true:warning
161+
csharp_style_expression_bodied_local_functions = false:silent

Spiffy.sln

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E98E7450-AA92-4741-A563-54937E412331}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spiffy", "src\Spiffy\Spiffy.csproj", "{F9048160-807F-4126-8015-D845534514AC}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{4539BA53-CE14-44DD-82E6-0B32B5022A0D}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spiffy.Tests", "test\Spiffy.Tests\Spiffy.Tests.csproj", "{A97C1767-8253-4679-9DB8-37837A1A5325}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Release|Any CPU = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
23+
{F9048160-807F-4126-8015-D845534514AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{F9048160-807F-4126-8015-D845534514AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{F9048160-807F-4126-8015-D845534514AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{F9048160-807F-4126-8015-D845534514AC}.Release|Any CPU.Build.0 = Release|Any CPU
27+
{A97C1767-8253-4679-9DB8-37837A1A5325}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{A97C1767-8253-4679-9DB8-37837A1A5325}.Debug|Any CPU.Build.0 = Debug|Any CPU
29+
{A97C1767-8253-4679-9DB8-37837A1A5325}.Release|Any CPU.ActiveCfg = Release|Any CPU
30+
{A97C1767-8253-4679-9DB8-37837A1A5325}.Release|Any CPU.Build.0 = Release|Any CPU
31+
EndGlobalSection
32+
GlobalSection(NestedProjects) = preSolution
33+
{F9048160-807F-4126-8015-D845534514AC} = {E98E7450-AA92-4741-A563-54937E412331}
34+
{A97C1767-8253-4679-9DB8-37837A1A5325} = {4539BA53-CE14-44DD-82E6-0B32B5022A0D}
35+
EndGlobalSection
36+
EndGlobal

0 commit comments

Comments
 (0)