Skip to content

Commit 24bc21f

Browse files
authored
Merge pull request #23 from NavneetHegde/release/3.0
Release/3.0
2 parents d0fde01 + 470fdfb commit 24bc21f

12 files changed

Lines changed: 344 additions & 756 deletions

File tree

.editorconfig

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# Top-most EditorConfig file
2+
# See https://editorconfig.org for more information
3+
4+
# Root of the .editorconfig file
5+
root = true
6+
7+
# C# files (for Blazor)
8+
[*.cs]
9+
# Use spaces for indentation
10+
indent_style = space
11+
# Set the indentation width to 4 spaces
12+
indent_size = 4
13+
# Ensure a newline at the end of the file
14+
end_of_line = lf
15+
# Trim trailing whitespace
16+
trim_trailing_whitespace = true
17+
# Insert a final newline
18+
insert_final_newline = true
19+
# Set the charset to UTF-8
20+
charset = utf-8
21+
# C# code formatting options
22+
dotnet_style_prefer_implicit_array_type = true
23+
dotnet_style_prefer_collection_initializer = true
24+
dotnet_style_prefer_implicit_object_creation = true
25+
csharp_indent_labels = one_less_than_current
26+
csharp_using_directive_placement = outside_namespace:silent
27+
csharp_prefer_simple_using_statement = true:suggestion
28+
csharp_prefer_braces = true:silent
29+
csharp_style_namespace_declarations = block_scoped:silent
30+
csharp_style_prefer_method_group_conversion = true:silent
31+
csharp_style_prefer_top_level_statements = true:silent
32+
csharp_style_prefer_primary_constructors = true:suggestion
33+
csharp_prefer_system_threading_lock = true:suggestion
34+
csharp_style_expression_bodied_methods = false:silent
35+
csharp_style_expression_bodied_constructors = false:silent
36+
csharp_style_expression_bodied_operators = false:silent
37+
csharp_style_expression_bodied_properties = true:silent
38+
csharp_style_expression_bodied_indexers = true:silent
39+
csharp_style_expression_bodied_accessors = true:silent
40+
csharp_style_expression_bodied_lambdas = true:silent
41+
csharp_style_expression_bodied_local_functions = false:silent
42+
43+
# Razor files (.razor)
44+
[*.razor]
45+
# Use spaces for indentation
46+
indent_style = space
47+
# Set the indentation width to 4 spaces
48+
indent_size = 4
49+
# Ensure a newline at the end of the file
50+
end_of_line = lf
51+
# Trim trailing whitespace
52+
trim_trailing_whitespace = true
53+
# Insert a final newline
54+
insert_final_newline = true
55+
# Set the charset to UTF-8
56+
charset = utf-8
57+
58+
# JavaScript and TypeScript files (if you're using them for frontend)
59+
[*.{js,ts}]
60+
indent_style = space
61+
indent_size = 2
62+
end_of_line = lf
63+
trim_trailing_whitespace = true
64+
insert_final_newline = true
65+
66+
# HTML files (for Blazor's HTML components)
67+
[*.html]
68+
indent_style = space
69+
indent_size = 2
70+
end_of_line = lf
71+
trim_trailing_whitespace = true
72+
insert_final_newline = true
73+
74+
# JSON files
75+
[*.json]
76+
indent_style = space
77+
indent_size = 2
78+
end_of_line = lf
79+
trim_trailing_whitespace = true
80+
insert_final_newline = true
81+
82+
# CSS/SCSS files
83+
[*.{css,scss}]
84+
indent_style = space
85+
indent_size = 2
86+
end_of_line = lf
87+
trim_trailing_whitespace = true
88+
insert_final_newline = true
89+
90+
[*.{cs,vb}]
91+
#### Naming styles ####
92+
93+
# Naming rules
94+
95+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
96+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
97+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
98+
99+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
100+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
101+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
102+
103+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
104+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
105+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
106+
107+
# Symbol specifications
108+
109+
dotnet_naming_symbols.interface.applicable_kinds = interface
110+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
111+
dotnet_naming_symbols.interface.required_modifiers =
112+
113+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
114+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
115+
dotnet_naming_symbols.types.required_modifiers =
116+
117+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
118+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
119+
dotnet_naming_symbols.non_field_members.required_modifiers =
120+
121+
# Naming styles
122+
123+
dotnet_naming_style.begins_with_i.required_prefix = I
124+
dotnet_naming_style.begins_with_i.required_suffix =
125+
dotnet_naming_style.begins_with_i.word_separator =
126+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
127+
128+
dotnet_naming_style.pascal_case.required_prefix =
129+
dotnet_naming_style.pascal_case.required_suffix =
130+
dotnet_naming_style.pascal_case.word_separator =
131+
dotnet_naming_style.pascal_case.capitalization = pascal_case
132+
133+
dotnet_naming_style.pascal_case.required_prefix =
134+
dotnet_naming_style.pascal_case.required_suffix =
135+
dotnet_naming_style.pascal_case.word_separator =
136+
dotnet_naming_style.pascal_case.capitalization = pascal_case
137+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
138+
tab_width = 4
139+
indent_size = 4
140+
end_of_line = lf
141+
dotnet_style_coalesce_expression = true:suggestion
142+
dotnet_style_null_propagation = true:suggestion
143+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
144+
dotnet_style_prefer_auto_properties = true:silent
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Publish Nuget
2+
3+
on:
4+
push:
5+
branches:
6+
- release/*
7+
tags:
8+
- 'v*'
9+
10+
jobs:
11+
build-and-publish:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write # enable GitHub OIDC token issuance for this job
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '9.0.x'
23+
24+
- name: Restore dependencies
25+
run: dotnet restore
26+
27+
- name: Build
28+
run: dotnet build --configuration Release --no-restore
29+
30+
- name: Test
31+
run: dotnet test --configuration Release --no-build --verbosity normal
32+
33+
- name: Pack
34+
run: dotnet pack --configuration Release --no-build --output ./nupkg
35+
36+
- name: Nuget Login (OIDC + temp API Key)
37+
uses: Nuget/login@v1
38+
id: login
39+
with:
40+
user: ${{secrets.NUGET_USER}}
41+
42+
- name: Nuget push
43+
run: dotnet nuget push nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
44+
45+
46+

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changelog
2+
3+
## [3.0.0] - YYYY-MM-DD
4+
5+
### Added
6+
- N/A
7+
8+
### Changed
9+
- **Upgrade from .NET Standard 2.1 to .NET 9**
10+
The project has been upgraded from .NET Standard 2.1 to .NET 9. This brings enhanced performance, improved security, and access to modern features in .NET 9.
11+
12+
### Deprecated
13+
- N/A
14+
15+
### Removed
16+
- N/A
17+
18+
### Fixed
19+
- N/A
20+
21+
### Security
22+
- N/A
23+
24+
### Breaking Changes
25+
- Projects previously depending on .NET Standard 2.1 may face compatibility issues with .NET 9. Any dependencies using .NET Standard 2.1 need to be updated to versions compatible with .NET 9 or higher.
26+
27+
### Future Considerations
28+
- Ensure that all dependencies are updated to be compatible with .NET 9 to fully benefit from the platform's capabilities.
29+

0 commit comments

Comments
 (0)