Skip to content

Commit f163ad8

Browse files
authored
Update projects, files, and deps for .NET 6.0 and C# 10 (#109)
This updates all the build and test projects to use .NET 6.0 and updates all the projects to use the new global usings and namespace features of C# 10. It also fixes all nullable warnings and various other warnings and messages. +semver: minor
1 parent 9c2201c commit f163ad8

File tree

92 files changed

+6564
-7303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+6564
-7303
lines changed

.editorconfig

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
1-
; This file is for unifying the coding style for different editors and IDEs.
2-
; More information at http://EditorConfig.org
3-
4-
root = true
5-
6-
[*]
7-
end_of_line = CRLF
8-
9-
[*.ps1]
10-
indent_style = space
11-
indent_size = 2
12-
13-
[*.cs]
14-
indent_style = space
15-
indent_size = 4
16-
17-
[*.csproj]
18-
indent_style = space
19-
indent_size = 2
20-
21-
[*.cake]
22-
indent_style = space
23-
indent_size = 2
24-
25-
[*.md]
26-
indent_style = space
27-
indent_size = 4
28-
29-
[*.xaml]
30-
indent_style = space
31-
indent_size = 4
32-
33-
[*.yml]
34-
indent_style = space
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://EditorConfig.org
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = CRLF
8+
9+
[*.sh]
10+
end_of_line = LF
11+
12+
[*.ps1]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.cs]
17+
indent_style = space
18+
indent_size = 4
19+
20+
[*.csproj]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[*.cake]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[*.md]
29+
indent_style = space
30+
indent_size = 4
31+
32+
[*.xaml]
33+
indent_style = space
34+
indent_size = 4
35+
36+
[*.yml]
37+
indent_style = space
3538
indent_size = 2

.nuke/build.schema.json

Lines changed: 142 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,143 +1,143 @@
1-
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"title": "Build Schema",
4-
"$ref": "#/definitions/build",
5-
"definitions": {
6-
"build": {
7-
"type": "object",
8-
"properties": {
9-
"Configuration": {
10-
"type": "string",
11-
"description": "Configuration to build. Default is 'Debug' (local) or 'Release' (server)",
12-
"enum": [
13-
"Debug",
14-
"Release"
15-
]
16-
},
17-
"Continue": {
18-
"type": "boolean",
19-
"description": "Indicates to continue a previously failed build attempt"
20-
},
21-
"GitHubAccessToken": {
22-
"type": "string",
23-
"description": "GitHub access token used for creating a new or updating an existing release"
24-
},
25-
"Help": {
26-
"type": "boolean",
27-
"description": "Shows the help text for this build assembly"
28-
},
29-
"Host": {
30-
"type": "string",
31-
"description": "Host for execution. Default is 'automatic'",
32-
"enum": [
33-
"AppVeyor",
34-
"AzurePipelines",
35-
"Bamboo",
36-
"Bitrise",
37-
"GitHubActions",
38-
"GitLab",
39-
"Jenkins",
40-
"Rider",
41-
"SpaceAutomation",
42-
"TeamCity",
43-
"Terminal",
44-
"TravisCI",
45-
"VisualStudio",
46-
"VSCode"
47-
]
48-
},
49-
"inrule-version": {
50-
"type": "string",
51-
"description": "Version of the InRule Repository SDK use. Default is 5.2.0"
52-
},
53-
"NoLogo": {
54-
"type": "boolean",
55-
"description": "Disables displaying the NUKE logo"
56-
},
57-
"NuGetApiKey": {
58-
"type": "string",
59-
"description": "NuGet API key used to pushing the Sdk NuGet package"
60-
},
61-
"NuGetSource": {
62-
"type": "string",
63-
"description": "NuGet source used for pushing the Sdk NuGet package. Default is NuGet.org"
64-
},
65-
"Partition": {
66-
"type": "string",
67-
"description": "Partition to use on CI"
68-
},
69-
"Plan": {
70-
"type": "boolean",
71-
"description": "Shows the execution plan (HTML)"
72-
},
73-
"Profile": {
74-
"type": "array",
75-
"description": "Defines the profiles to load",
76-
"items": {
77-
"type": "string"
78-
}
79-
},
80-
"Root": {
81-
"type": "string",
82-
"description": "Root directory during build execution"
83-
},
84-
"Skip": {
85-
"type": "array",
86-
"description": "List of targets to be skipped. Empty list skips all dependencies",
87-
"items": {
88-
"type": "string",
89-
"enum": [
90-
"Clean",
91-
"CompileAuthoring",
92-
"CompileSdk",
93-
"Default",
94-
"DeployToIrAuthor",
95-
"PublishAuthoringArtifacts",
96-
"PublishSdkArtifacts",
97-
"PublishToGitHub",
98-
"PublishToNuGetFeed",
99-
"RestoreAuthoring",
100-
"RestoreSdk",
101-
"TestSdk"
102-
]
103-
}
104-
},
105-
"Solution": {
106-
"type": "string",
107-
"description": "Path to a solution file that is automatically loaded"
108-
},
109-
"Target": {
110-
"type": "array",
111-
"description": "List of targets to be invoked. Default is '{default_target}'",
112-
"items": {
113-
"type": "string",
114-
"enum": [
115-
"Clean",
116-
"CompileAuthoring",
117-
"CompileSdk",
118-
"Default",
119-
"DeployToIrAuthor",
120-
"PublishAuthoringArtifacts",
121-
"PublishSdkArtifacts",
122-
"PublishToGitHub",
123-
"PublishToNuGetFeed",
124-
"RestoreAuthoring",
125-
"RestoreSdk",
126-
"TestSdk"
127-
]
128-
}
129-
},
130-
"Verbosity": {
131-
"type": "string",
132-
"description": "Logging verbosity during build execution. Default is 'Normal'",
133-
"enum": [
134-
"Minimal",
135-
"Normal",
136-
"Quiet",
137-
"Verbose"
138-
]
139-
}
140-
}
141-
}
142-
}
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Build Schema",
4+
"$ref": "#/definitions/build",
5+
"definitions": {
6+
"build": {
7+
"type": "object",
8+
"properties": {
9+
"Configuration": {
10+
"type": "string",
11+
"description": "Configuration to build. Default is 'Debug' (local) or 'Release' (server)",
12+
"enum": [
13+
"Debug",
14+
"Release"
15+
]
16+
},
17+
"Continue": {
18+
"type": "boolean",
19+
"description": "Indicates to continue a previously failed build attempt"
20+
},
21+
"GitHubAccessToken": {
22+
"type": "string",
23+
"description": "GitHub access token used for creating a new or updating an existing release"
24+
},
25+
"Help": {
26+
"type": "boolean",
27+
"description": "Shows the help text for this build assembly"
28+
},
29+
"Host": {
30+
"type": "string",
31+
"description": "Host for execution. Default is 'automatic'",
32+
"enum": [
33+
"AppVeyor",
34+
"AzurePipelines",
35+
"Bamboo",
36+
"Bitrise",
37+
"GitHubActions",
38+
"GitLab",
39+
"Jenkins",
40+
"Rider",
41+
"SpaceAutomation",
42+
"TeamCity",
43+
"Terminal",
44+
"TravisCI",
45+
"VisualStudio",
46+
"VSCode"
47+
]
48+
},
49+
"inrule-version": {
50+
"type": "string",
51+
"description": "Version of the InRule Repository SDK use. Default is 5.2.0"
52+
},
53+
"NoLogo": {
54+
"type": "boolean",
55+
"description": "Disables displaying the NUKE logo"
56+
},
57+
"NuGetApiKey": {
58+
"type": "string",
59+
"description": "NuGet API key used to pushing the Sdk NuGet package"
60+
},
61+
"NuGetSource": {
62+
"type": "string",
63+
"description": "NuGet source used for pushing the Sdk NuGet package. Default is NuGet.org"
64+
},
65+
"Partition": {
66+
"type": "string",
67+
"description": "Partition to use on CI"
68+
},
69+
"Plan": {
70+
"type": "boolean",
71+
"description": "Shows the execution plan (HTML)"
72+
},
73+
"Profile": {
74+
"type": "array",
75+
"description": "Defines the profiles to load",
76+
"items": {
77+
"type": "string"
78+
}
79+
},
80+
"Root": {
81+
"type": "string",
82+
"description": "Root directory during build execution"
83+
},
84+
"Skip": {
85+
"type": "array",
86+
"description": "List of targets to be skipped. Empty list skips all dependencies",
87+
"items": {
88+
"type": "string",
89+
"enum": [
90+
"Clean",
91+
"CompileAuthoring",
92+
"CompileSdk",
93+
"Default",
94+
"DeployToIrAuthor",
95+
"PublishAuthoringArtifacts",
96+
"PublishSdkArtifacts",
97+
"PublishToGitHub",
98+
"PublishToNuGetFeed",
99+
"RestoreAuthoring",
100+
"RestoreSdk",
101+
"TestSdk"
102+
]
103+
}
104+
},
105+
"Solution": {
106+
"type": "string",
107+
"description": "Path to a solution file that is automatically loaded"
108+
},
109+
"Target": {
110+
"type": "array",
111+
"description": "List of targets to be invoked. Default is '{default_target}'",
112+
"items": {
113+
"type": "string",
114+
"enum": [
115+
"Clean",
116+
"CompileAuthoring",
117+
"CompileSdk",
118+
"Default",
119+
"DeployToIrAuthor",
120+
"PublishAuthoringArtifacts",
121+
"PublishSdkArtifacts",
122+
"PublishToGitHub",
123+
"PublishToNuGetFeed",
124+
"RestoreAuthoring",
125+
"RestoreSdk",
126+
"TestSdk"
127+
]
128+
}
129+
},
130+
"Verbosity": {
131+
"type": "string",
132+
"description": "Logging verbosity during build execution. Default is 'Normal'",
133+
"enum": [
134+
"Minimal",
135+
"Normal",
136+
"Quiet",
137+
"Verbose"
138+
]
139+
}
140+
}
141+
}
142+
}
143143
}

.nuke/parameters.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
2-
"$schema": "./build.schema.json",
3-
"Solution": "Sknet.InRuleGitStorage.sln"
1+
{
2+
"$schema": "./build.schema.json",
3+
"Solution": "Sknet.InRuleGitStorage.sln"
44
}

0 commit comments

Comments
 (0)