Skip to content

Commit 9cc7166

Browse files
authored
Merge pull request #895 from Particular/GitHubSync-20250715-173913
GitHubSync update - release-4.4
2 parents d267fe0 + 9231c48 commit 9cc7166

14 files changed

Lines changed: 54 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
strategy:
1919
matrix:
2020
include:
21-
- os: windows-2022
21+
- os: windows-latest
2222
name: Windows
23-
- os: ubuntu-22.04
23+
- os: ubuntu-latest
2424
name: Linux
2525
fail-fast: false
2626
steps:
@@ -51,7 +51,7 @@ jobs:
5151
shell: bash
5252
- name: Fix Azure Functions Core Tools permissions - Linux
5353
if: runner.os == 'Linux'
54-
run: sudo chmod +x /usr/lib/azure-functions-core-tools/in-proc6/func
54+
run: sudo chmod +x /usr/lib/azure-functions-core-tools/in-proc8/func
5555
- name: Build
5656
run: dotnet build src --configuration Release
5757
- name: Upload packages

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defaults:
1111
shell: pwsh
1212
jobs:
1313
release:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4.1.6

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ build/
6767
bld/
6868
[Bb]in/
6969
[Oo]bj/
70+
*.binlog
7071

7172
# Roslyn cache directories
7273
*.ide/

src/.editorconfig

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,17 @@ dotnet_style_qualification_for_field = false:error
4141
dotnet_style_qualification_for_method = false:error
4242
dotnet_style_qualification_for_property = false:error
4343

44+
# Namespace/folder matching
45+
dotnet_style_namespace_match_folder = false
46+
4447
# Language keywords vs BCL types preferences
4548
dotnet_diagnostic.IDE0049.severity = error
4649
dotnet_style_predefined_type_for_locals_parameters_members = true:error
4750
dotnet_style_predefined_type_for_member_access = true:error
4851

4952
# Modifier preferences
50-
dotnet_diagnostic.IDE0040.severity = error
51-
dotnet_style_require_accessibility_modifiers = omit_if_default:error
53+
dotnet_diagnostic.IDE0040.severity = warning
54+
dotnet_style_require_accessibility_modifiers = omit_if_default:warning
5255

5356
# TODO: Change to error
5457
dotnet_diagnostic.IDE0044.severity = suggestion
@@ -63,8 +66,8 @@ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:error
6366
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:error
6467

6568
# Expression-level preferences
66-
dotnet_diagnostic.IDE0017.severity = error
67-
dotnet_style_object_initializer = true:error
69+
dotnet_diagnostic.IDE0017.severity = warning
70+
dotnet_style_object_initializer = true:warning
6871

6972
dotnet_diagnostic.IDE0028.severity = error
7073
dotnet_style_collection_initializer = true:error
@@ -223,22 +226,22 @@ file_header_template = unset
223226
dotnet_diagnostic.IDE0001.severity = error
224227
dotnet_diagnostic.IDE0002.severity = error
225228
dotnet_diagnostic.IDE0004.severity = error
226-
dotnet_diagnostic.IDE0005.severity = error
229+
dotnet_diagnostic.IDE0005.severity = warning
227230
dotnet_diagnostic.IDE0035.severity = error
228-
dotnet_diagnostic.IDE0051.severity = error
229-
dotnet_diagnostic.IDE0052.severity = error
231+
dotnet_diagnostic.IDE0051.severity = warning
232+
dotnet_diagnostic.IDE0052.severity = warning
230233

231234
# TODO: Change to error
232235
dotnet_diagnostic.IDE0058.severity = suggestion
233236
csharp_style_unused_value_expression_statement_preference = discard_variable
234237

235-
dotnet_diagnostic.IDE0059.severity = error
238+
dotnet_diagnostic.IDE0059.severity = warning
236239
csharp_style_unused_value_assignment_preference = discard_variable
237240

238-
dotnet_diagnostic.IDE0060.severity = error
241+
dotnet_diagnostic.IDE0060.severity = warning
239242
dotnet_code_quality_unused_parameters = non_public
240243

241-
dotnet_diagnostic.IDE0079.severity = error
244+
dotnet_diagnostic.IDE0079.severity = error # Diagnostic does not fail build
242245
dotnet_remove_unnecessary_suppression_exclusions = none
243246

244247
dotnet_diagnostic.IDE0080.severity = error
@@ -249,7 +252,7 @@ dotnet_diagnostic.IDE0110.severity = error
249252

250253
#### Formatting Rules ####
251254

252-
dotnet_diagnostic.IDE0055.severity = error
255+
dotnet_diagnostic.IDE0055.severity = warning
253256

254257
# New line preferences
255258
csharp_new_line_before_catch = true
@@ -322,6 +325,14 @@ dotnet_naming_rule.fields.style = camel_case
322325
dotnet_naming_rule.fields.symbols = fields
323326
dotnet_naming_rule.fields.severity = none
324327

328+
dotnet_naming_rule.local_constants.severity = none
329+
dotnet_naming_rule.local_constants.symbols = local_constants
330+
dotnet_naming_rule.local_constants.style = camel_case
331+
332+
dotnet_naming_rule.local_variables.severity = suggestion
333+
dotnet_naming_rule.local_variables.symbols = local_variables
334+
dotnet_naming_rule.local_variables.style = camel_case
335+
325336
# Symbol specifications
326337
dotnet_naming_symbols.interface.applicable_kinds = interface
327338
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
@@ -339,6 +350,12 @@ dotnet_naming_symbols.fields.applicable_kinds = field
339350
dotnet_naming_symbols.fields.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
340351
dotnet_naming_symbols.fields.required_modifiers =
341352

353+
dotnet_naming_symbols.local_constants.applicable_kinds = local
354+
dotnet_naming_symbols.local_constants.required_modifiers = const
355+
356+
dotnet_naming_symbols.local_variables.applicable_kinds = local
357+
dotnet_naming_symbols.local_variables.required_modifiers =
358+
342359
# Naming styles
343360
dotnet_naming_style.pascal_case.required_prefix =
344361
dotnet_naming_style.pascal_case.required_suffix =

src/IntegrationTests.HostV4/IntegrationTests.HostV4.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
66
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
77
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GeneratedFiles</CompilerGeneratedFilesOutputPath>

src/IntegrationTests.HostV4/Startup.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ public class Startup : FunctionsStartup
88
{
99
public override void Configure(IFunctionsHostBuilder builder)
1010
{
11-
builder.UseNServiceBus(c => c.AdvancedConfiguration.EnableInstallers());
11+
builder.UseNServiceBus(c =>
12+
{
13+
c.AdvancedConfiguration.EnableInstallers();
14+
c.AdvancedConfiguration.AssemblyScanner().ExcludeAssemblies("System.ClientModel.dll");
15+
});
1216
}
1317
}

src/IntegrationTests.HostV4/local.settings.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
66

77
"AzureWebJobsServiceBus": "<set your ASB connection string here>",
8-
"CustomComponentValue": "Custom Component"
8+
"CustomComponentValue": "Custom Component",
9+
10+
"FUNCTIONS_INPROC_NET8_ENABLED": 1
911
}
10-
}
12+
}

src/NServiceBus.AzureFunctions.Analyzer.Tests/NServiceBus.AzureFunctions.Analyzer.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/NServiceBus.AzureFunctions.SourceGenerator.Tests/NServiceBus.AzureFunctions.SourceGenerator.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>..\NServiceBusTests.snk</AssemblyOriginatorKeyFile>
77
</PropertyGroup>

src/NServiceBus.AzureFunctions.SourceGenerator.Tests/SourceGeneratorApprovals.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ static CSharpCompilation Compile(IEnumerable<SyntaxTree> syntaxTrees, IEnumerabl
229229
// Verify the code compiled:
230230
var compilationErrors = compilation
231231
.GetDiagnostics()
232-
.Where(d => d.Severity >= DiagnosticSeverity.Warning);
232+
.Where(d => d.Severity >= DiagnosticSeverity.Warning)
233+
// Ignoring warning CS1701: Assuming Microsoft.Extensions.Logging.Abstractions v6 and v8 are the same thing
234+
// because component targets net6 while tests are now net8. SDK suppresses this for you but hits here due
235+
// to direct compiler invocation. See https://github.com/dotnet/roslyn/issues/19640
236+
.Where(d => d.Id != "CS1701"); //
233237
Assert.IsEmpty(compilationErrors, compilationErrors.FirstOrDefault()?.GetMessage());
234238

235239
return compilation;

0 commit comments

Comments
 (0)