Skip to content

Commit d1f063a

Browse files
committed
Updated several projects to .NET8 from .NET6
1 parent 4ef0fcf commit d1f063a

File tree

25 files changed

+81
-62
lines changed

25 files changed

+81
-62
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Build Core Framework
33
on: [push]
44

55
env:
6-
nuGetVersionNumber: 5.2.3
7-
nuGetFullVersionNumber: 5.2.3.${{ github.run_number }}
6+
nuGetVersionNumber: 5.3.0
7+
nuGetFullVersionNumber: 5.3.0.${{ github.run_number }}
88

99
jobs:
1010
build:

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
workflow_dispatch:
77

88
env:
9-
nuGetVersionNumber: 5.2.3
10-
nuGetFullVersionNumber: 5.2.3.${{ github.run_number }}
9+
nuGetVersionNumber: 5.3.0
10+
nuGetFullVersionNumber: 5.3.0.${{ github.run_number }}
1111

1212
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1313
jobs:

Framework/Azure/Cqrs.Azure.Functions.Isolated/Configuration/IsolatedFunctionHostModule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using Microsoft.ApplicationInsights;
2323
using Microsoft.ApplicationInsights.Extensibility;
2424

25-
#if NET6_0
25+
#if NET6_0_OR_GREATER
2626
using Microsoft.Extensions.Configuration;
2727
#endif
2828

@@ -68,7 +68,7 @@ protected virtual void RegisterAzureConfigurations(IServiceCollection services)
6868
}
6969
}
7070

71-
#if NET6_0
71+
#if NET6_0_OR_GREATER
7272
services.AddSingleton<IConfiguration>(Cqrs.Configuration.ConfigurationManager.BaseConfiguration);
7373
#endif
7474
if (DependencyResolver.ConfigurationManager == null)

Framework/Azure/Cqrs.Azure.Functions.Isolated/Cqrs.Azure.Functions.Isolated.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net48;net8.0</TargetFrameworks>
44
<title>Microsoft Azure Functions for CQRS.NET</title>
55
<Authors>Chinchilla Software</Authors>
66
<Company>Chinchilla Software</Company>
@@ -10,6 +10,10 @@
1010
<PackageProjectUrl>https://github.com/Chinchilla-Software-Com/CQRS</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/Chinchilla-Software-Com/CQRS</RepositoryUrl>
1212
<PackageReleaseNotes>
13+
Version 5.3
14+
15+
* Deprecated .NET 6.0, replaced with .NET 8.0
16+
1317
Version 5.0
1418

1519
* Azure function support added
@@ -49,7 +53,7 @@
4953

5054
<PropertyGroup>
5155
<OutputType>Exe</OutputType>
52-
<TargetFrameworks>net6.0</TargetFrameworks>
56+
<TargetFrameworks>net8.0</TargetFrameworks>
5357
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
5458
<DocumentationFile>Cqrs.Azure.Functions.xml</DocumentationFile>
5559
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

Framework/Azure/Cqrs.Azure.Functions.Isolated/CqrsIsolatedFunctionHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ protected override void Start()
213213
/// </summary>
214214
public static void SetExecutionPath
215215
(
216-
#if NET6_0
216+
#if NET6_0_OR_GREATER
217217
Microsoft.Extensions.Configuration.IConfigurationRoot config
218218
#endif
219219
)
220220
{
221-
#if NET6_0
221+
#if NET6_0_OR_GREATER
222222
SetConfigurationManager(config);
223223
#endif
224224

@@ -259,7 +259,7 @@ protected virtual IEnumerable<Module> GetSupplementaryModules(IServiceCollection
259259
var results = new List<Module>
260260
{
261261
new TIsolatedFunctionHostModule(),
262-
#if NET6_0
262+
#if NET6_0_OR_GREATER
263263
new CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper>(new CloudConfigurationManager(Cqrs.Configuration.ConfigurationManager.BaseConfiguration))
264264
#else
265265
new CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper>(new CloudConfigurationManager())

Framework/Azure/Cqrs.Azure.Functions/Configuration/FunctionHostModule.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
using Microsoft.ApplicationInsights.Extensibility;
2323
using Microsoft.ApplicationInsights;
2424

25-
26-
#if NET6_0
25+
#if NET6_0_OR_GREATER
2726
using Microsoft.Extensions.Configuration;
2827
#endif
2928

@@ -69,17 +68,17 @@ protected virtual void RegisterAzureConfigurations(IServiceCollection services)
6968
}
7069
}
7170

72-
#if NET6_0
71+
#if NET6_0_OR_GREATER
7372
services.AddSingleton<IConfiguration>(Cqrs.Configuration.ConfigurationManager.BaseConfiguration);
7473
#endif
7574
if (DependencyResolver.ConfigurationManager == null)
7675
{
77-
services.AddSingleton<IConfigurationManager, CloudConfigurationManager>();
78-
DependencyResolver.ConfigurationManager = Resolve<IConfigurationManager>(services);
76+
services.AddSingleton<Cqrs.Configuration.IConfigurationManager, CloudConfigurationManager>();
77+
DependencyResolver.ConfigurationManager = Resolve<Cqrs.Configuration.IConfigurationManager>(services);
7978
}
8079
else
8180
{
82-
services.AddSingleton<IConfigurationManager>(DependencyResolver.ConfigurationManager);
81+
services.AddSingleton<Cqrs.Configuration.IConfigurationManager>(DependencyResolver.ConfigurationManager);
8382
}
8483
}
8584

Framework/Azure/Cqrs.Azure.Functions/Cqrs.Azure.Functions.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net48;net8.0</TargetFrameworks>
44
<title>Microsoft Azure Functions for CQRS.NET</title>
55
<Authors>Chinchilla Software</Authors>
66
<Company>Chinchilla Software</Company>
@@ -10,6 +10,10 @@
1010
<PackageProjectUrl>https://github.com/Chinchilla-Software-Com/CQRS</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/Chinchilla-Software-Com/CQRS</RepositoryUrl>
1212
<PackageReleaseNotes>
13+
Version 5.3
14+
15+
* Deprecated .NET 6.0, replaced with .NET 8.0
16+
1317
Version 5.0
1418

1519
* Azure function support added
@@ -48,7 +52,7 @@
4852
</ItemGroup>
4953

5054
<PropertyGroup>
51-
<TargetFrameworks>net48;net6.0</TargetFrameworks>
55+
<TargetFrameworks>net48;net8.0</TargetFrameworks>
5256
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
5357
<DocumentationFile>Cqrs.Azure.Functions.xml</DocumentationFile>
5458
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
@@ -63,7 +67,7 @@
6367
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
6468
</ItemGroup>
6569

66-
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
70+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
6771
<FrameworkReference Include="Microsoft.AspNetCore.App" />
6872

6973
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0" />

Framework/Azure/Cqrs.Azure.Functions/CqrsFunctionHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ protected override void Start()
132132
/// </summary>
133133
public static void SetExecutionPath
134134
(
135-
#if NET6_0
135+
#if NET6_0_OR_GREATER
136136
Microsoft.Extensions.Configuration.IConfigurationRoot config,
137137
#endif
138138
string rootPath
139139
)
140140
{
141-
#if NET6_0
141+
#if NET6_0_OR_GREATER
142142
SetConfigurationManager(config);
143143
#endif
144144

@@ -167,7 +167,7 @@ protected virtual IEnumerable<Module> GetSupplementaryModules(IServiceCollection
167167
var results = new List<Module>
168168
{
169169
new TIsolatedFunctionHostModule(),
170-
#if NET6_0
170+
#if NET6_0_OR_GREATER
171171
new CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper>(new CloudConfigurationManager(Cqrs.Configuration.ConfigurationManager.BaseConfiguration))
172172
#else
173173
new CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper>(new CloudConfigurationManager())

Framework/Azure/Cqrs.Azure.Functions/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#endregion
88

99
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
10-
#if NET6_0
10+
#if NET6_0_OR_GREATER
1111
using Microsoft.Extensions.Configuration;
1212
using System;
1313
#endif

Framework/Azure/Cqrs.Azure.WebJobs/Cqrs.Azure.WebJobs.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net472;netstandard2.0;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net472;netstandard2.0;net8.0</TargetFrameworks>
44
<title>Microsoft Azure WebJobs for CQRS.NET</title>
55
<Authors>Chinchilla Software</Authors>
66
<Company>Chinchilla Software</Company>
@@ -10,6 +10,10 @@
1010
<PackageProjectUrl>https://github.com/Chinchilla-Software-Com/CQRS</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/Chinchilla-Software-Com/CQRS</RepositoryUrl>
1212
<PackageReleaseNotes>
13+
Version 5.3
14+
15+
* Deprecated .NET 6.0, replaced with .NET 8.0
16+
1317
Version 5.0
1418

1519
* Deprecated .NET 5.0, replaced with .NET 6.0
@@ -64,7 +68,7 @@
6468
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
6569
</PropertyGroup>
6670

67-
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
71+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
6872
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.2" />
6973
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.4" />
7074
<PackageReference Include="System.Net.Http" Version="4.3.4" />

0 commit comments

Comments
 (0)